Commit 69fcbf0f85ae1d5043cde03b80a258114d1fd1ea

Authored by liuqimichale
1 parent 21cd1985

ๆ‰“ๅŒ…

build/utils.js
@@ -47,6 +47,7 @@ exports.cssLoaders = function (options) { @@ -47,6 +47,7 @@ exports.cssLoaders = function (options) {
47 if (options.extract) { 47 if (options.extract) {
48 return ExtractTextPlugin.extract({ 48 return ExtractTextPlugin.extract({
49 use: loaders, 49 use: loaders,
  50 + publicPath: '../../',
50 fallback: 'vue-style-loader' 51 fallback: 'vue-style-loader'
51 }) 52 })
52 } else { 53 } else {
build/webpack.prod.conf.js
@@ -23,7 +23,6 @@ const webpackConfig = merge(baseWebpackConfig, { @@ -23,7 +23,6 @@ const webpackConfig = merge(baseWebpackConfig, {
23 }, 23 },
24 devtool: config.build.productionSourceMap ? config.build.devtool : false, 24 devtool: config.build.productionSourceMap ? config.build.devtool : false,
25 output: { 25 output: {
26 - publicPath: './',  
27 path: config.build.assetsRoot, 26 path: config.build.assetsRoot,
28 filename: utils.assetsPath('js/[name].[chunkhash].js'), 27 filename: utils.assetsPath('js/[name].[chunkhash].js'),
29 chunkFilename: utils.assetsPath('js/[id].[chunkhash].js') 28 chunkFilename: utils.assetsPath('js/[id].[chunkhash].js')
src/assets/img/bg.jpg 0 โ†’ 100644

157 KB

src/styles/reset.css
@@ -58,7 +58,7 @@ html, body{ @@ -58,7 +58,7 @@ html, body{
58 -moz-user-select: none; 58 -moz-user-select: none;
59 } 59 }
60 body{ 60 body{
61 - background: url("/static/img/bg.jpg") no-repeat; 61 + background: url("../assets/img/bg.jpg") no-repeat;
62 background-size: 100% 100%; 62 background-size: 100% 100%;
63 overflow: hidden; 63 overflow: hidden;
64 /*background-size:100% 100%;*/ 64 /*background-size:100% 100%;*/