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.

35 lines
1018 B

6 years ago
6 years ago
6 years ago
  1. var HtmlWebpackPlugin = require('html-webpack-plugin');
  2. var ExtractTextPlugin = require('extract-text-webpack-plugin');
  3. var path = require("path");
  4. module.exports = {
  5. entry: ['./src/index.js'],
  6. output: {
  7. path: path.join(__dirname, "./dist/"),
  8. filename: "main.js",
  9. },
  10. module:{
  11. rules:[
  12. {
  13. test:/\.sass$/,
  14. use: ExtractTextPlugin.extract({
  15. fallback:'style-loader',
  16. use:['css-loader','sass-loader']
  17. })
  18. }
  19. ]
  20. },
  21. plugins: [
  22. new ExtractTextPlugin({filename:'style.css'}),
  23. new HtmlWebpackPlugin({
  24. hash: true,
  25. title: 'Weather for Philadelphia, PA',
  26. template: './src/index.html',
  27. path: path.join(__dirname, "./dist/"),
  28. filename: 'index.html',
  29. meta: {
  30. viewport: 'width=device-width, initial-scale=1, shrink-to-fit=no',
  31. }
  32. }),
  33. ]
  34. }