Answer the question
In order to leave comments, you need to log in
How to fix double file connection?
Using Vue UI
created a template project, the only thing - added vue.config.js
and variables.scss
. The assembly goes as expected, but the final index.html
files are connected 2 times.
vue.config.js
module.exports = {
productionSourceMap: false,
css: {
loaderOptions: {
sass: {
data: `@import "[email protected]/variables.scss";`
}
}
}
}
Answer the question
In order to leave comments, you need to log in
In principle, Alexander Aksentiev has already given you an exhaustive answer.
You can optionally disable these plugins in webpack by adding the following to vue.config.js:
{
...
chainWebpack: config => {
config.plugins.delete('prefetch');
config.plugins.delete('preload');
},
...
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question