extract-text-webpack-plugin doesnt compile sass -
my webpack.confing.js file looks like. babel fine src/css/main.sass file doesn't compile. when run 'npm run build' there isn't error sass files not affected.
- "extract-text-webpack-plugin": "^3.0.0",
- "webpack-dev-server": "^2.6.1"
- "webpack": "^3.3.0",
-
module: { rules: [ { test: /\.js?$/, exclude: [path.resolve(__dirname, 'node_modules')], use: [{ loader: 'babel-loader', options: {presets: ['es2015']} }] }, { test: /\.sass$/, use: extracttextplugin.extract({ fallback: "style-loader", use: ['css-loader','sass-loader'] }) } ] },plugins: [ new extracttextplugin("main.css") ]
Comments
Post a Comment