[Improvement] add sideEffects config for webpack 4 (#926)

This commit is contained in:
neverland 2018-04-24 17:01:14 +08:00 committed by GitHub
parent b48ee8eece
commit ba33733bd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,6 +12,10 @@
"packages", "packages",
"types" "types"
], ],
"sideEffects": [
"es/**/style/*",
"lib/**/style/*"
],
"scripts": { "scripts": {
"bootstrap": "yarn || npm i && cd ./packages/vant-css/ && yarn || npm i && cd ../../", "bootstrap": "yarn || npm i && cd ./packages/vant-css/ && yarn || npm i && cd ../../",
"dev": "npm run build:file && webpack-dev-server --inline --config build/webpack.config.dev.js", "dev": "npm run build:file && webpack-dev-server --inline --config build/webpack.config.dev.js",