Created
May 7, 2016 16:59
-
-
Save wclr/d503e0e1d42f7b56d1c8e1c4e01f51fe 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
const webpack = require('webpack') | |
const dev = process.env.NODE_ENV = process.env.NODE_ENV || 'webpack-development' | |
module.exports = { | |
entry: [ | |
//'webpack-dev-server/client?http://cycle-hmr-webpack.127.0.0.1.til.io:2000', | |
'webpack-dev-server/client', | |
'webpack/hot/only-dev-server', | |
__dirname + '/app.js' | |
], | |
output: { | |
//path: __dirname + '/public/emails', | |
filename: 'build.js' | |
}, | |
module: { | |
loaders: [ | |
{ | |
test: /\.js$/, | |
exclude: /(node_modules|bower_components)/, | |
loader: 'babel' | |
}, | |
{ | |
test: /\.css$/, loader: 'style!css', | |
exclude: /bootstrap\.min/ | |
} | |
] | |
}, | |
plugins: [ | |
new webpack.NoErrorsPlugin(), | |
new webpack.HotModuleReplacementPlugin(), | |
new webpack.IgnorePlugin(/most-adapter/) | |
], | |
devServer: { | |
hot: true, | |
port: process.env.PORT, | |
proxy: { | |
//'/api/*': { | |
// | |
// changeOrigin: true | |
//} | |
}, | |
historyApiFallback: { | |
index: '/example/index.html' | |
} | |
}, | |
devtool: dev && 'eval', | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment