Skip to content

Instantly share code, notes, and snippets.

@danivijay
Created December 13, 2017 15:33
Show Gist options
  • Save danivijay/a13ea33dd557f57cce73c6c7c9cf04c5 to your computer and use it in GitHub Desktop.
Save danivijay/a13ea33dd557f57cce73c6c7c9cf04c5 to your computer and use it in GitHub Desktop.
Webpack 3.6 config for dev
import webpack from 'webpack';
import path from 'path';
export default {
devtool: 'inline-source-map',
entry: [
path.resolve(__dirname, 'src/index')
],
target: 'web',
output: {
path: path.resolve(__dirname, 'src'),
publicPath: '/',
filename: 'bundle.js'
},
plugins: [
new webpack.LoaderOptionsPlugin({
debug: true,
noInfo: false,
})
],
module: {
rules: [
{test: /\.js$/, exclude: /node_modules/, loaders: ['babel-loader']},
{test: /\.css$/, loaders: ['style-loader','css-loader']}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment