Skip to content

Instantly share code, notes, and snippets.

@Marakuba
Created May 25, 2016 04:05
Show Gist options
  • Select an option

  • Save Marakuba/6cfd408a4e007010ed0b44ac7d194fae to your computer and use it in GitHub Desktop.

Select an option

Save Marakuba/6cfd408a4e007010ed0b44ac7d194fae to your computer and use it in GitHub Desktop.
var path = require("path");
var webpack = require('webpack');
module.exports = {
entry: {
"react": "./src/react.js",
"vue": "./src/vue.js"
},
output: {
filename: "[name].js",
path: path.resolve("dist")
},
module: {
loaders: [{
test: /\.js$/,
exclude: /node_modules/,
loader: "babel"
}, ]
},
plugins: [
new webpack.DefinePlugin({
'process.env': {
'NODE_ENV': JSON.stringify('production')
}
})],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment