laravel-elixir-vue-2 icon indicating copy to clipboard operation
laravel-elixir-vue-2 copied to clipboard

Extract scss problem

Open jellebreuer opened this issue 8 years ago • 1 comments

So i added this to my webpack.config.js

const ExtractTextPlugin = require("extract-text-webpack-plugin");
module.exports = {
    vue: {
        loaders: {
            js: 'buble-loader',
            scss: ExtractTextPlugin.extract({
                loader: 'css-loader!sass-loader',
                fallbackLoader: 'vue-style-loader'
            })
        }
    },
    plugins: [
        new ExtractTextPlugin("../css/components.css")
    ]
};

It works and extracts all style tags to an css file, only is also still injects style tags into the head. how do i disable the head style injection?? i have been trying for a whole day, its driving me crazy xD

jellebreuer avatar Jan 09 '17 20:01 jellebreuer

it was browsersync that causes the problem, the above config works without it

jellebreuer avatar Jan 09 '17 20:01 jellebreuer