Skip to content

Commit 847e9c5

Browse files
feat: update wepack config.
1 parent f690cae commit 847e9c5

13 files changed

+2731
-4532
lines changed
File renamed without changes.

public/index.html renamed to index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width,initial-scale=1.0">
7-
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
7+
<link rel="icon" href="/favicon.ico">
88
<title><%= htmlWebpackPlugin.options.title %></title>
99
</head>
1010
<body>

package.json

Lines changed: 49 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,59 @@
11
{
2-
"name": "vue-cesium-example",
2+
"name": "vue-cesium-webpack-starter",
33
"version": "0.0.1",
4-
"private": true,
54
"scripts": {
6-
"serve": "vue-cli-service serve",
7-
"build": "vue-cli-service build",
8-
"test:unit": "vue-cli-service test:unit",
9-
"lint": "vue-cli-service lint"
5+
"bootstarp": "rimraf node_modules & pnpm install",
6+
"dev": "cross-env NODE_ENV=development webpack serve --progress --config scripts/webpack.dev.conf.js",
7+
"build": "rimraf dist && cross-env NODE_ENV=production webpack --progress --config scripts/webpack.prod.conf.js"
108
},
119
"dependencies": {
1210
"cesium": "1.118.2",
13-
"core-js": "3.25.0",
14-
"vue": "2.7.10",
15-
"vue-router": "3.6.5",
16-
"vuex": "3.6.2"
11+
"vue": "^2.7.16",
12+
"vue-router": "^3.6.5",
13+
"vuex": "^3.6.2"
1714
},
1815
"devDependencies": {
19-
"@babel/core": "^7.19.0",
20-
"@babel/eslint-parser": "7.18.9",
21-
"@vue/cli-plugin-babel": "5.0.8",
22-
"@vue/cli-plugin-eslint": "5.0.8",
23-
"@vue/cli-plugin-router": "5.0.8",
24-
"@vue/cli-plugin-unit-jest": "5.0.8",
25-
"@vue/cli-plugin-vuex": "5.0.8",
26-
"@vue/cli-service": "5.0.8",
27-
"@vue/eslint-config-prettier": "7.0.0",
28-
"@vue/test-utils": "1.3.0",
29-
"copy-webpack-plugin": "11.0.0",
30-
"eslint": "8.22.0",
31-
"eslint-plugin-prettier": "4.2.1",
32-
"eslint-plugin-vue": "9.4.0",
33-
"jest": "27.5.1",
34-
"node-polyfill-webpack-plugin": "^2.0.1",
35-
"prettier": "2.7.1",
36-
"sass": "1.54.8",
37-
"sass-loader": "13.0.2",
38-
"vue-template-compiler": "2.7.10",
39-
"webpack": "5.92.1",
40-
"webpack-cli": "5.1.4"
16+
"@babel/core": "^7.24.7",
17+
"@babel/eslint-parser": "^7.24.7",
18+
"@vue/eslint-config-prettier": "^9.0.0",
19+
"@vue/test-utils": "^2.4.6",
20+
"autoprefixer": "^10.4.19",
21+
"babel-loader": "^9.1.3",
22+
"copy-webpack-plugin": "^12.0.2",
23+
"cross-env": "^7.0.3",
24+
"css-loader": "^7.1.2",
25+
"css-minimizer-webpack-plugin": "^7.0.0",
26+
"esbuild-loader": "^4.2.0",
27+
"eslint": "^9.5.0",
28+
"eslint-friendly-formatter": "^4.0.1",
29+
"eslint-plugin-prettier": "^5.1.3",
30+
"eslint-plugin-vue": "^9.26.0",
31+
"html-webpack-plugin": "^5.6.0",
32+
"jest": "^29.7.0",
33+
"less": "^4.2.0",
34+
"less-loader": "^12.2.0",
35+
"mini-css-extract-plugin": "^2.9.0",
36+
"node-notifier": "^10.0.1",
37+
"node-polyfill-webpack-plugin": "^4.0.0",
38+
"portfinder": "^1.0.32",
39+
"postcss": "^8.4.38",
40+
"postcss-loader": "^8.1.1",
41+
"prettier": "^3.3.2",
42+
"rimraf": "^5.0.7",
43+
"sass": "^1.77.6",
44+
"sass-loader": "^14.2.1",
45+
"speed-measure-webpack-v5-plugin": "^1.5.2",
46+
"style-loader": "^4.0.0",
47+
"terser-webpack-plugin": "^5.3.10",
48+
"thread-loader": "^4.0.2",
49+
"vue-loader": "15.11.1",
50+
"vue-style-loader": "^4.1.3",
51+
"vue-template-compiler": "^2.7.16",
52+
"webpack": "^5.92.1",
53+
"webpack-bundle-analyzer": "^4.10.2",
54+
"webpack-cli": "^5.1.4",
55+
"webpack-dev-server": "^5.0.4",
56+
"webpack-merge": "^5.10.0",
57+
"webpackbar": "^6.0.1"
4158
}
4259
}

0 commit comments

Comments
 (0)