Commit 69fcbf0f85ae1d5043cde03b80a258114d1fd1ea

Authored by liuqimichale
1 parent 21cd1985

ๆ‰“ๅŒ…

build/utils.js
... ... @@ -47,6 +47,7 @@ exports.cssLoaders = function (options) {
47 47 if (options.extract) {
48 48 return ExtractTextPlugin.extract({
49 49 use: loaders,
  50 + publicPath: '../../',
50 51 fallback: 'vue-style-loader'
51 52 })
52 53 } else {
... ...
build/webpack.prod.conf.js
... ... @@ -23,7 +23,6 @@ const webpackConfig = merge(baseWebpackConfig, {
23 23 },
24 24 devtool: config.build.productionSourceMap ? config.build.devtool : false,
25 25 output: {
26   - publicPath: './',
27 26 path: config.build.assetsRoot,
28 27 filename: utils.assetsPath('js/[name].[chunkhash].js'),
29 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 58 -moz-user-select: none;
59 59 }
60 60 body{
61   - background: url("/static/img/bg.jpg") no-repeat;
  61 + background: url("../assets/img/bg.jpg") no-repeat;
62 62 background-size: 100% 100%;
63 63 overflow: hidden;
64 64 /*background-size:100% 100%;*/
... ...