vue.config.js在Vue CLI中,除了configureWebpack还有什么要改的?
vue.config.js in Vue CLI, what else is there to change other than configureWebpack?
我是 Vue CLI 生态系统的新手。在vue.config.js(@vue/cli 4.5.9)中,除了configureWebpack
,里面一般改了什么?
v4.5.9 docs 指定可以配置的所有可用选项(configureWebpack
除外):
baseUrl
publicPath
outputDir
assetsDir
indexPath
filenameHashing
pages
lintOnSave
runtimeCompiler
transpileDependencies
productionSourceMap
crossorigin
integrity
chainWebpack
css.modules
css.requireModuleExtension
css.extract
css.sourceMap
css.loaderOptions
devServer
devServer.proxy
parallel
pwa
pluginOptions
我是 Vue CLI 生态系统的新手。在vue.config.js(@vue/cli 4.5.9)中,除了configureWebpack
,里面一般改了什么?
v4.5.9 docs 指定可以配置的所有可用选项(configureWebpack
除外):
baseUrl
publicPath
outputDir
assetsDir
indexPath
filenameHashing
pages
lintOnSave
runtimeCompiler
transpileDependencies
productionSourceMap
crossorigin
integrity
chainWebpack
css.modules
css.requireModuleExtension
css.extract
css.sourceMap
css.loaderOptions
devServer
devServer.proxy
parallel
pwa
pluginOptions