Guest User

Untitled

a guest
Jun 23rd, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. const MiniCssExtractPlugin = require("mini-css-extract-plugin");
  2. module.exports = {
  3. mode: 'production',
  4. entry: './catalog/view/theme/default/sas/common.scss',
  5. plugins: [
  6. new MiniCssExtractPlugin({
  7. // Options similar to the same options in webpackOptions.output
  8. // both options are optional
  9. filename: "./catalog/view/theme/default/stylesheet/stylesheet.css",
  10.  
  11.  
  12. })
  13. ],
  14. module: {
  15. rules: [
  16. {
  17. test: /.scss$/,
  18. use: [
  19. MiniCssExtractPlugin.loader,
  20. {
  21. loader: "css-loader",
  22. options: {
  23. modules: true,
  24. sourceMap: true,
  25. importLoader: 2
  26. }
  27. },
  28. 'postcss-loader',
  29. "sass-loader"
  30. ],
  31. }
  32. ]
  33. }
  34. ,
  35. watch: true,
  36. }
Add Comment
Please, Sign In to add comment