Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. const path = require('path');
  2. const HWP = require('html-webpack-plugin');
  3. module.exports = {
  4. entry: path.join(__dirname, '/src/index.js'),
  5. output: {
  6. filename: 'build.js',
  7. path: path.join(__dirname, '/dist')},
  8. module:{
  9. rules:[{
  10. test: /\.js$/,
  11. exclude: /node_modules/,
  12. loader: 'babel-loader'
  13. }]
  14. },
  15. plugins:[
  16. new HWP(
  17. {template: path.join(__dirname,'/public/index.html')}
  18. )
  19. ]
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement