drawing shapes on a canvas when the user clicks
This commit is contained in:
21
webpack.config.js
Normal file
21
webpack.config.js
Normal file
@@ -0,0 +1,21 @@
|
||||
var path = require('path');
|
||||
|
||||
module.exports = {
|
||||
entry: path.join(__dirname, 'src', 'main.js'),
|
||||
output: {
|
||||
libraryTarget: 'this',
|
||||
path: path.join(__dirname, 'public', 'js'),
|
||||
filename: 'main.js'
|
||||
},
|
||||
devtool: 'inline-source-map',
|
||||
module: {
|
||||
loaders: [{
|
||||
test: path.join(__dirname, 'src'),
|
||||
loader: 'babel-loader',
|
||||
query: {
|
||||
presets: ['es2015']
|
||||
}
|
||||
}]
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user