first commit
This commit is contained in:
25
webpack.config.js
Normal file
25
webpack.config.js
Normal file
@@ -0,0 +1,25 @@
|
||||
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'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user