21 lines
467 B
JavaScript
21 lines
467 B
JavaScript
|
var webpack = require('webpack')
|
||
|
var path = require('path')
|
||
|
|
||
|
module.exports = {
|
||
|
entry: path.resolve(__dirname, 'app'),
|
||
|
output: {
|
||
|
path: __dirname + '/dist',
|
||
|
publicPath: '/',
|
||
|
filename: 'bundle.js'
|
||
|
},
|
||
|
devServer: {
|
||
|
contentBase: path.resolve(__dirname, 'public')
|
||
|
},
|
||
|
module: {
|
||
|
loaders: [
|
||
|
{test: /\.js$/, exclude: /node_modules/, loaders: ['babel-loader']},
|
||
|
{test: /(\.css)$/, loaders: ['style-loader', 'css-loader']}
|
||
|
]
|
||
|
}
|
||
|
}
|