Guest User

Untitled

a guest
Feb 24th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. const path = require('path');
  2. const HtmlWebpackPlugin = require('html-webpack-plugin');
  3.  
  4. const htmlWebpack = new HtmlWebpackPlugin({
  5. template: './assets/index.html',
  6. filename: 'index.html'
  7. });
  8.  
  9. module.exports = {
  10. entry: "./assets/javascript/entry.js",
  11. output: {
  12. publicPath: "/",
  13. path: path.join(__dirname, ".."),
  14. filename: "dist/javascript/bundle.js"
  15. },
  16. plugins: [htmlWebpack],
  17. module: {
  18. rules: [
  19. {
  20. test: /\.scss$/,
  21. use: ["style-loader", "css-loader", "sass-loader"]
  22. },
  23. {
  24. test: /\.jpg$/,
  25. loader: 'url-loader'
  26. }
  27. ]
  28. }
  29. };
Add Comment
Please, Sign In to add comment