Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const path = require('path');
- const HWP = require('html-webpack-plugin');
- module.exports = {
- entry: path.join(__dirname, '/src/index.js'),
- output: {
- filename: 'build.js',
- path: path.join(__dirname, '/dist')},
- module:{
- rules:[{
- test: /\.js$/,
- exclude: /node_modules/,
- loader: 'babel-loader'
- }]
- },
- plugins:[
- new HWP(
- {template: path.join(__dirname,'/public/index.html')}
- )
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement