20 lines
315 B
JavaScript
20 lines
315 B
JavaScript
var path = require('path');
|
|
|
|
module.exports = {
|
|
entry: './app.js',
|
|
output: {
|
|
filename: 'bundle.js',
|
|
path: here()
|
|
},
|
|
context: here('js'),
|
|
module: {
|
|
loaders: [
|
|
{test: /\.css$/, loaders: ['style', 'css']}
|
|
]
|
|
}
|
|
};
|
|
|
|
function here(d) {
|
|
return d ? path.join(__dirname, d) : __dirname;
|
|
}
|