Skip to content

Instantly share code, notes, and snippets.

@Dauli
Forked from coryhouse/webpack.config.dev.js
Created April 4, 2019 17:14
Show Gist options
  • Save Dauli/eb0268047c16cf04c3f172b88f8f7788 to your computer and use it in GitHub Desktop.
Save Dauli/eb0268047c16cf04c3f172b88f8f7788 to your computer and use it in GitHub Desktop.
Development Webpack config for "Building a JavaScript Development Environment" on Pluralsight
import path from 'path';
export default {
debug: true,
devtool: 'inline-source-map',
noInfo: false,
entry: [
path.resolve(__dirname, 'src/index')
],
target: 'web',
output: {
path: path.resolve(__dirname, 'src'),
publicPath: '/',
filename: 'bundle.js'
},
plugins: [],
module: {
loaders: [
{test: /\.js$/, exclude: /node_modules/, loaders: ['babel']},
{test: /\.css$/, loaders: ['style','css']}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment