26 lines
696 B
JavaScript
26 lines
696 B
JavaScript
|
|
var webpack = require('webpack');
|
||
|
|
|
||
|
|
module.exports = {
|
||
|
|
entry: './helix/javascript/array_summary/index.js',
|
||
|
|
output: {
|
||
|
|
path: './helix/static/javascripts/',
|
||
|
|
filename: 'array_summary_bundle.js'
|
||
|
|
},
|
||
|
|
//devtool: 'source-map',
|
||
|
|
module: {
|
||
|
|
loaders: [
|
||
|
|
{
|
||
|
|
test: /\.js$/,
|
||
|
|
exclude: /node_modules/,
|
||
|
|
loader: 'babel-loader'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
// That will tell Webpack that EaselJS refers to `window` with `this` and exports `window.createjs`.
|
||
|
|
test: /easeljs\.js$/,
|
||
|
|
loader: 'imports?this=>window!exports?window.createjs'
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
|
||
|
|
};
|