我想通过 Vue CLI 4.5 编译文件,但是我想省略资产文件夹,如js, css, img, fonts.
这就是我的 vue.config.js 文件现在的样子。我试图改变publicPath并assetsDir没有运气。
module.exports = {
publicPath:
process.env.NODE_ENV === "production"
? "/newfolder/"
: "/",
assetsDir: "static"
}
Vue 正在尝试从以下位置加载所有内容:
newfolder/static/js
newfolder/static/css
newfolder/static/img
newfolder/static/fonts
就我而言,有没有办法将所有内容都转储到static文件夹中?