Skip to content

Commit

Permalink
fix(build): Add production env flag
Browse files Browse the repository at this point in the history
Closes #44
  • Loading branch information
apertureless committed Mar 18, 2019
1 parent 16b14b1 commit 9dec5cf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/vue-loader.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ module.exports = {
sourceMap: isProduction
? config.build.productionSourceMap
: config.dev.cssSourceMap,
extract: isProduction
extract: false
})
}
2 changes: 1 addition & 1 deletion config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
assetsRoot: path.resolve(__dirname, '../docs'),
assetsSubDirectory: 'static',
assetsPublicPath: '/',
productionSourceMap: true,
productionSourceMap: false,
// Gzip off by default as many popular static hosts such as
// Surge or Netlify already gzip all static assets for you.
// Before setting to `true`, make sure to:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"docs": "node build/build.js",
"build": "npm run build:umd",
"build:es": "rollup -c",
"build:umd": "webpack --progress --hide-modules --config ./build/webpack.release.js",
"build:umd": "cross-env NODE_ENV=production webpack --progress --hide-modules --config ./build/webpack.release.js",
"unit": "cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run",
"test": "npm run unit",
"lint": "eslint --ext .js,.vue src test/unit/specs",
Expand Down

0 comments on commit 9dec5cf

Please sign in to comment.