Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. const path = require('path');
  2. const MiniCssExtractPlugin = require('mini-css-extract-plugin');
  3.  
  4. module.exports = {
  5. mode: "development",
  6. entry: ['./index.js', './scss/main.scss', './css/plain_css.css'],
  7. output: {
  8. path: path.resolve(__dirname, 'dist'),
  9. filename: 'js/bundle.js'
  10. },
  11. module: {
  12. rules: [{
  13. test: /\.(css|sass|scss)$/,
  14. use: [
  15. MiniCssExtractPlugin.loader,
  16. {
  17. loader: 'css-loader'
  18. },
  19. {
  20. loader: 'sass-loader',
  21. options: {
  22. sourceMap: true,
  23. // options...
  24. }
  25. }
  26. ]
  27. }]
  28. },
  29. plugins: [
  30. new MiniCssExtractPlugin({
  31. filename: 'css/[name].bundle.css'
  32. }),
  33. ]
  34. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement