Created
November 15, 2018 02:30
-
-
Save Synvox/2463901246780463027963efc2f4fc77 to your computer and use it in GitHub Desktop.
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
const path = require('path') | |
process.env.NODE_ENV = 'development' | |
module.exports = { | |
entry: { | |
app: ['./src/index.js'] | |
}, | |
output: { | |
path: path.resolve(__dirname, 'dist'), | |
filename: '[name]-bundle.js' | |
}, | |
module: { | |
rules: [ | |
{ | |
test: /\.js$/, | |
exclude: /node_modules/, | |
use: { | |
loader: 'babel-loader', | |
options: { | |
presets: ['react-app'] | |
} | |
} | |
} | |
] | |
}, | |
optimization: { | |
noEmitOnErrors: true | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment