Browse Source

Use Webpack’s DefinePlugin to indicate a production environment

pull/342/head
Guillaume Vincent 7 years ago
parent
commit
5f86965bf6
3 changed files with 14 additions and 14 deletions
  1. +2
    -3
      dist/lesspass.min.css
  2. +10
    -10
      dist/lesspass.min.js
  3. +2
    -1
      package.json

+ 2
- 3
dist/lesspass.min.css
File diff suppressed because it is too large
View File


+ 10
- 10
dist/lesspass.min.js
File diff suppressed because it is too large
View File


+ 2
- 1
package.json View File

@@ -6,7 +6,7 @@
"author": "Guillaume Vincent <guillaume@oslab.fr>", "author": "Guillaume Vincent <guillaume@oslab.fr>",
"repository": "lesspass/pure", "repository": "lesspass/pure",
"scripts": { "scripts": {
"build": "rm -rf dist && NODE_ENV=production webpack --display-error-details --progress --hide-modules",
"build": "rm -rf dist && cross-env NODE_ENV=production webpack -p",
"dev": "webpack-dev-server --inline --hot --host 0.0.0.0", "dev": "webpack-dev-server --inline --hot --host 0.0.0.0",
"prepublish": "npm test && npm run build", "prepublish": "npm test && npm run build",
"test": "ava test --compilers js:babel-register" "test": "ava test --compilers js:babel-register"
@@ -46,6 +46,7 @@
"babel-preset-stage-2": "^6.22.0", "babel-preset-stage-2": "^6.22.0",
"babel-register": "^6.22.0", "babel-register": "^6.22.0",
"babel-runtime": "^6.22.0", "babel-runtime": "^6.22.0",
"cross-env": "^3.1.4",
"css-loader": "^0.26.0", "css-loader": "^0.26.0",
"extract-text-webpack-plugin": "^2.0.0-rc.3", "extract-text-webpack-plugin": "^2.0.0-rc.3",
"file-loader": "^0.10.0", "file-loader": "^0.10.0",


Loading…
Cancel
Save