Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 048b6c6

Browse files
author
BiYuqi
committed
chore: upgrade cli3 -> cli4+
1 parent 7f06b4a commit 048b6c6

File tree

6 files changed

+10958
-15584
lines changed

6 files changed

+10958
-15584
lines changed

‎.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
registry=https://registry.npm.taobao.org

‎README.md

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -76,21 +76,12 @@ module.exports = {
7676
})
7777
}
7878

79-
// build环境js & css处理
79+
// build环境js
8080
if (IS_PROD) {
8181
config.output
8282
.filename(bundle => {
8383
return bundle.chunk.name === 'index' ? 'js/[name].[contenthash:8].js' : '[name]/[name].[contenthash:8].js'
8484
})
85-
86-
config.plugin('extract-css').use(MiniCssExtractPlugin, [
87-
{
88-
filename: bundle => {
89-
return bundle.chunk.name === 'index' ? 'css/[name].[contenthash:8].css' : '[name]/[name].[contenthash:8].css'
90-
},
91-
chunkFilename: 'css/[name].[contenthash:8].css'
92-
}
93-
])
9485
}
9586
}
9687
}
@@ -103,9 +94,9 @@ git clone https://github.com/BiYuqi/vue-multiple-pages.git
10394

10495
cd vue-multiple-pages
10596

106-
npm install
97+
yarn install
10798

108-
npm run serve
99+
yarn run serve
109100

110-
npm run build
101+
yarn run build
111102
```

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /