Normally, Vue CLI with vue.config.js
places the .js
and .css
assets in /dist/[css|js]/
. However, I want the .js
and .css
files in the root dist
folder.
I can get the .js
file in the root folder with the following config:
module.exports = {
productionSourceMap: false,
filenameHashing: false,
configureWebpack: {
optimization: {
splitChunks: false
}
},
chainWebpack: config => {
config.externals({
...config.get("externals"),
moment: "moment"
});
config.output.filename("[name].js");
}
};
How do I do this with the .css
file?