.babelrc
{
"presets": [["@babel/preset-env", { "modules": false }]],
"plugins": [
[
"component",
{
"libraryName": "element-ui",
"styleLibraryName": "theme-chalk"
}
]
]
}
package.json
构建后打的包就是几十k
"scripts": {
"dev": "parcel public/index.html --out-dir dist",
"serve": "npm run dev",
"build": "rm -rf build && parcel build public/index.html --no-cache --out-dir build --public-url ."
},