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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -