portfolio/packages/gallery/webpack.config.js
Timothy Farrell e1c1c0e18a Gallery -> DOMVM GalleryView
The whole app is converted to be base in DOMVM now.  But there are bugs.
2017-09-29 16:54:08 -05:00

24 lines
435 B
JavaScript

const path = require('path');
const webpack = require('webpack');
module.exports = {
context: path.resolve(__dirname, './src'),
entry: {
app: './app.js'
},
output: {
path: path.resolve(__dirname, './dist'),
filename: '[name].bundle.js',
publicPath: '/assets'
},
devServer: {
contentBase: path.resolve(__dirname, './src')
},
plugins: [
new webpack.DefinePlugin({
__DEV__: true
})
],
devtool: 'source-map'
};