Sfoglia il codice sorgente

Use Webpack’s DefinePlugin to indicate a production environment

pull/342/head
Guillaume Vincent 7 anni fa
parent
commit
5f86965bf6
3 ha cambiato i file con 14 aggiunte e 14 eliminazioni
  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 soppresso perché troppo grande
Vedi File


+ 10
- 10
dist/lesspass.min.js
File diff soppresso perché troppo grande
Vedi File


+ 2
- 1
package.json Vedi File

@@ -6,7 +6,7 @@
"author": "Guillaume Vincent <guillaume@oslab.fr>",
"repository": "lesspass/pure",
"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",
"prepublish": "npm test && npm run build",
"test": "ava test --compilers js:babel-register"
@@ -46,6 +46,7 @@
"babel-preset-stage-2": "^6.22.0",
"babel-register": "^6.22.0",
"babel-runtime": "^6.22.0",
"cross-env": "^3.1.4",
"css-loader": "^0.26.0",
"extract-text-webpack-plugin": "^2.0.0-rc.3",
"file-loader": "^0.10.0",


Caricamento…
Annulla
Salva