Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // file - webpack.config.js
- var path = require('path');
- var webpack = require('webpack');
- module.exports = {
- entry: {
- app: ['./src/index']
- },
- output: {
- path: path.join(__dirname, 'app/js'),
- filename: 'bundle.js',
- publicPath: "http://localhost:3000/app/"
- },
- module: {
- loaders: [
- {
- test: /\.js$/,
- loader: 'babel-loader',
- exclude: /node_modules/,
- include: path.join(__dirname, 'src')
- }
- ]
- },
- devServer: {
- port: 3000,
- hot: true,
- headers: {
- "Access-Control-Allow-Origin": "http://127.0.0.1:3000"
- }
- },
- plugins: [
- new webpack.HotModuleReplacementPlugin(),
- new webpack.NoErrorsPlugin()
- ]
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement