Skip to content

Commit

Permalink
build config amend
Browse files Browse the repository at this point in the history
  • Loading branch information
liuhaihong committed Nov 8, 2017
1 parent 0af5e32 commit 8e2ff01
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
10 changes: 5 additions & 5 deletions build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => {
process.exit(1)
}

console.log(chalk.cyan(' Build complete.\n'))
console.log(chalk.yellow(
' Tip: built files are meant to be served over an HTTP server.\n' +
' Opening index.html over file:// won\'t work.\n'
))
// console.log(chalk.cyan(' Build complete.\n'))
// console.log(chalk.yellow(
// ' Tip: built files are meant to be served over an HTTP server.\n' +
// ' Opening index.html over file:// won\'t work.\n'
// ))
})
})
3 changes: 2 additions & 1 deletion build/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ exports.cssLoaders = function (options) {
if (options.extract) {
return ExtractTextPlugin.extract({
use: loaders,
fallback: 'vue-style-loader'
fallback: 'vue-style-loader',
publicPath: '../../'
})
} else {
return ['vue-style-loader'].concat(loaders)
Expand Down
2 changes: 1 addition & 1 deletion config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = {
index: path.resolve(__dirname, '../dist/index.html'),
assetsRoot: path.resolve(__dirname, '../dist'),
assetsSubDirectory: 'static',
assetsPublicPath: '/',
assetsPublicPath: './',
productionSourceMap: true,
// Gzip off by default as many popular static hosts such as
// Surge or Netlify already gzip all static assets for you.
Expand Down

0 comments on commit 8e2ff01

Please sign in to comment.