react-component-google-maps
Version:
A React Google Maps Component
57 lines (55 loc) • 1.44 kB
JavaScript
var path = require('path');
var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
devtool: 'inline-source-map',
entry: [
'webpack-hot-middleware/client',
'./DevApp/index.js'
],
output: {
path: path.join(__dirname, 'public'),
filename: 'bundle.[hash].js',
publicPath: '/'
},
externals: {
'google': 'google'
},
module: {
loaders: [{
test: /\.js$/,
loaders: ['babel'],
exclude: /node_modules/
},
{
test: /\.json$/,
loader: 'json'
},
{
test: /\.(less|css)$/,
loaders: ['style', 'css', 'less'],
include: path.join(__dirname, 'DevApp'),
exclude: /node_modules/
},
{
test: /\.(png)$/,
loader: 'url?limit=100000&mimetype=image/png'
},
{
test: /\.(jpg|gif|svg)$/,
loader: 'file?name=images/[name].[ext]'
}]
},
plugins: [
new HtmlWebpackPlugin({
template: 'DevApp/index.ejs'
}),
new webpack.HotModuleReplacementPlugin(),
new webpack.optimize.OccurrenceOrderPlugin(true),
new webpack.NoErrorsPlugin(),
new webpack.DefinePlugin({
__DEV__: true,
__PRODUCTION__: false
})
]
};