Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Extract scss problem #27

Open
jbreuer95 opened this issue Jan 9, 2017 · 1 comment
Open

Extract scss problem #27

jbreuer95 opened this issue Jan 9, 2017 · 1 comment

Comments

@jbreuer95
Copy link

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

@jbreuer95
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant