1
1
100R2019-08-29 18:48:39
Vue.js
100R, 2019-08-29 18:48:39

How to fix double file connection?

Using Vue UIcreated a template project, the only thing - added vue.config.jsand variables.scss. The assembly goes as expected, but the final index.htmlfiles are connected 2 times.
vue.config.js

module.exports = {
    productionSourceMap: false,
    css: {
        loaderOptions: {
            sass: {
                data: `@import "[email protected]/variables.scss";`
            }
        }
    }
}

5d67f3b2775ff299126090.png
5d67f3bb69424862192392.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey delphinpro, 2019-08-29
@100R

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');
    },
    ...
}

A
Alexander Aksentiev, 2019-08-29
@Sanasol

https://developer.mozilla.org/en/docs/Web/HTML/Pre...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question