Created
December 13, 2017 15:33
-
-
Save danivijay/a13ea33dd557f57cce73c6c7c9cf04c5 to your computer and use it in GitHub Desktop.
Webpack 3.6 config for dev
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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