Showing
2 changed files
with
3 additions
and
2 deletions
@@ -11,7 +11,7 @@ try { | @@ -11,7 +11,7 @@ try { | ||
11 | let dev = JSON.parse(fs.readFileSync(path.join(__dirname, '../../.devhost'))); | 11 | let dev = JSON.parse(fs.readFileSync(path.join(__dirname, '../../.devhost'))); |
12 | 12 | ||
13 | info.host = dev.host; | 13 | info.host = dev.host; |
14 | - info.publicPath = `http://${info.host}:${info.port}`; | 14 | + info.publicPath = `http://${info.host}:${info.port}/`; |
15 | } catch (e) { | 15 | } catch (e) { |
16 | console.error(e); | 16 | console.error(e); |
17 | console.warn(` | 17 | console.warn(` |
@@ -77,7 +77,8 @@ exports.postcssPlugin = (et) => { | @@ -77,7 +77,8 @@ exports.postcssPlugin = (et) => { | ||
77 | } else if (et === 'dev') { | 77 | } else if (et === 'dev') { |
78 | assets = { | 78 | assets = { |
79 | loadPaths: [path.join(__dirname, '../img/'), path.join(__dirname, '../font/')], | 79 | loadPaths: [path.join(__dirname, '../img/'), path.join(__dirname, '../font/')], |
80 | - relative: path.join(__dirname, './bundle'), | 80 | + baseUrl: devInfo.publicPath, |
81 | + basePath: 'public/' | ||
81 | }; | 82 | }; |
82 | 83 | ||
83 | Object.assign(sprites, { | 84 | Object.assign(sprites, { |
-
Please register or login to post a comment