Skip to content

Instantly share code, notes, and snippets.

@3stacks
Last active February 21, 2018 22:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 3stacks/b46fc5ec8b6ff811cb352f010ea686d2 to your computer and use it in GitHub Desktop.
Save 3stacks/b46fc5ec8b6ff811cb352f010ea686d2 to your computer and use it in GitHub Desktop.
simple webpack config
const path = require('path');
const webpack = require('webpack');
module.exports = {
entry: {
'index.webpack': path.resolve('./src/index.js')
},
output: {
libraryTarget: "umd",
filename: "bundle.webpack.js",
},
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader',
query: {
presets: ['es2015']
}
}
]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment