Created
May 25, 2016 04:05
-
-
Save Marakuba/6cfd408a4e007010ed0b44ac7d194fae to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| 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