Weather dashboard https://natronics.org/weather/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
697 B

6 years ago
6 years ago
  1. const path = require('path');
  2. module.exports = [{
  3. name: 'js',
  4. entry: ['./src/index.js'],
  5. output: {
  6. filename: 'main.js',
  7. path: path.resolve(__dirname, 'dist')
  8. }
  9. },
  10. {
  11. name: 'css',
  12. entry: ['./src/style.sass'],
  13. module: {
  14. rules: [
  15. {
  16. test: /\.sass$/,
  17. use: [
  18. {
  19. loader: 'file-loader',
  20. options: {
  21. name: 'style.css',
  22. }
  23. },
  24. {
  25. loader: 'extract-loader'
  26. },
  27. {
  28. loader: 'css-loader?-url'
  29. },
  30. {
  31. loader: 'sass-loader'
  32. }
  33. ]
  34. }
  35. ]
  36. }
  37. }];