浏览代码

Use Webpack’s DefinePlugin to indicate a production environment

pull/342/head
Guillaume Vincent 7 年前
父节点
当前提交
5f86965bf6
共有 3 个文件被更改,包括 14 次插入14 次删除
  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
文件差异内容过多而无法显示
查看文件


+ 10
- 10
dist/lesspass.min.js
文件差异内容过多而无法显示
查看文件


+ 2
- 1
package.json 查看文件

@@ -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",


正在加载...
取消
保存