基于
vue-cli@3
做的关于CDN
+Gzip
+Prerender
+Sass
的优化。这个仓库旨在展示最终的优化结果,细节可以通过查看git
历史了解,相应的地方也有详细注释。
{
"packageManager": "npm",
"useTaobaoRegistry": false,
"presets": {
"vue-optimization": {
"useConfigFiles": true,
"plugins": {
"@vue/cli-plugin-babel": {},
"@vue/cli-plugin-eslint": {
"config": "standard",
"lintOn": [
"save"
]
}
},
"router": true,
"routerHistoryMode": true,
"vuex": true,
"cssPreprocessor": "sass"
}
}
}
npm install
npm run serve
npm run build
npm run test
npm run lint