Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const path = require('path');
- const webpack = require('webpack');
- module.exports = {
- entry: './src/app.js',
- output: {
- path: path.resolve(__dirname, 'public/scripts'),
- filename: 'bundle.js'
- },
- module: {
- rules: [
- {
- loader: 'babel-loader',
- test: /\.js$/,
- exclude: /node_modules/
- }
- ]
- },
- devtool: 'cheap-module-eval-source-map',
- devServer: {
- contentBase: './public',
- hot: true,
- inline: true,
- port: 9000
- },
- plugins: [
- new webpack.NamedModulesPlugin(),
- new webpack.HotModuleReplacementPlugin()
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement