Skip to content

Commit 1a96c7c

Browse files
wip(build): use rimraf instead of webpack output.clean
1 parent 2f54d87 commit 1a96c7c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build/webpack.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ const configure = ({name, vueVersion}) => (env = {}, { mode = 'production', conf
4545

4646
output: {
4747
path: distPath,
48-
clean: true,
4948
filename: `vue${ vueVersion }-sfc-loader.js`,
5049
library: {
5150
type: 'umd',

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"testVue2": "cd test && cross-env VUE_VERSION=2 yarn run start",
2525
"tests": "jest --runInBand \"tests/.*\\.test.js\"",
2626
"dev": "webpack --mode=development --config ./build/webpack.config.js --progress --watch",
27-
"build": "cross-env-shell webpack --mode=production --config ./build/webpack.config.js --progress --env targetsBrowsers=\\\"$npm_package_browserslist\\\"",
27+
"build": "rimraf ./dist/ && cross-env-shell webpack --mode=production --config ./build/webpack.config.js --progress --env targetsBrowsers=\\\"$npm_package_browserslist\\\"",
2828
"docs": "cross-env-shell \"node build/evalHtmlComments.js README.md $npm_package_version && node build/evalHtmlComments.js docs/examples.md $npm_package_version && typedoc --plugin typedoc-plugin-markdown --mode file --tsconfig ./build/tsconfig.json --inputFiles ./src/index.ts --out ./docs/api --readme none --stripInternal --namedAnchors true\"",
2929
"pushDocs": "yarn run docs && git add docs/ && cross-env-shell git commit -m \\\"chore(docs): v$npm_package_version API docs & examples \\\" docs",
3030
"release": "standard-version --header \"\""
@@ -77,6 +77,7 @@
7777
"duplicate-package-checker-webpack-plugin": "^3.0.0",
7878
"jest": "^26.6.3",
7979
"puppeteer": "^8.0.0",
80+
"rimraf": "^3.0.2",
8081
"source-map-explorer": "2.5.2",
8182
"standard-version": "^9.1.1",
8283
"terser-webpack-plugin": "^5.1.1",

0 commit comments

Comments
 (0)