Skip to content

Commit

Permalink
fix: Add missing production env to remove dev settings
Browse files Browse the repository at this point in the history
Closes #33
  • Loading branch information
apertureless committed Mar 18, 2019
1 parent 0e98057 commit 4a21c74
Show file tree
Hide file tree
Showing 3 changed files with 145 additions and 136 deletions.
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
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"unit": "cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run",
"lint": "eslint --ext .js,.vue src test/unit/specs",
"prepublish": "npm run lint && npm run build",
"release": "webpack --progress --hide-modules --config ./build/webpack.release.js && NODE_ENV=production webpack --progress --hide-modules --config ./build/webpack.release.min.js"
"release": "cross-env NODE_ENV=production webpack --progress --hide-modules --config ./build/webpack.release.js && cross-env NODE_ENV=production webpack --progress --hide-modules --config ./build/webpack.release.min.js"
},
"files": [
"dist"
Expand Down Expand Up @@ -80,7 +80,7 @@
"karma-webpack": "^2.0.3",
"lolex": "^1.6.0",
"mocha": "^3.1.0",
"node-sass": "^4.8.3",
"node-sass": "^4.11.0",
"opn": "^4.0.2",
"ora": "^1.2.0",
"phantomjs-prebuilt": "^2.1.3",
Expand All @@ -90,12 +90,12 @@
"sinon": "^2.1.0",
"sinon-chai": "^2.9.0",
"url-loader": "^0.5.8",
"vue": "^2.3.3",
"vue": "^2.6.9",
"vue-loader": "^12.1.0",
"vue-play": "^3.2.1",
"vue-play-cli": "^1.1.1",
"vue-style-loader": "^3.0.1",
"vue-template-compiler": "^2.3.3",
"vue-template-compiler": "^2.6.9",
"webpack": "^1.13.2",
"webpack-dev-middleware": "^1.10.1",
"webpack-hot-middleware": "^2.17.1",
Expand Down

0 comments on commit 4a21c74

Please sign in to comment.