Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const path = require('path'),
- AssetsPlugin = require('assets-webpack-plugin'),
- HtmlWebpackPlugin = require('html-webpack-plugin');
- module.exports = {
- devtool: 'inline-source-map',
- entry: './client/index.js',
- output: {
- filename: '[name].bundle.js',
- path: path.resolve(__dirname, 'build/client'),
- publicPath: 'build/client'
- },
- module: {
- rules: [{ test: /\.js$/, loader: 'babel-loader', exclude: /node_modules/ }]
- },
- plugins: [
- new HtmlWebpackPlugin({
- template: './client/index.html',
- title: 'Bus Booking in Africa'
- }),
- new AssetsPlugin({
- prettyPrint: true,
- filename: 'assets.json',
- path: path.resolve(__dirname, 'build')
- })
- ]
- };
Add Comment
Please, Sign In to add comment