Librarried (#7)

This commit is contained in:
gavin
2018-07-24 01:03:03 +00:00
committed by Gitea
parent 2c19266ca6
commit 18f978cc8a
6 changed files with 29 additions and 46 deletions

View File

@@ -1,11 +1,14 @@
var path = require('path');
module.exports = {
entry: path.join(__dirname, 'src', 'main.js'),
entry: {
main: [path.join(__dirname, 'src', 'main.js')],
Tessellate: [path.join(__dirname, 'src', 'tessellate.js')],
},
output: {
libraryTarget: 'this',
path: path.join(__dirname, 'public', 'js'),
filename: 'main.js'
filename: '[name].js'
},
devtool: 'inline-source-map',
module: {
@@ -18,14 +21,5 @@ module.exports = {
}
]
}
// module: {
// loaders: [{
// test: path.join(__dirname, 'src'),
// loader: 'babel-loader',
// query: {
// presets: ['es2015']
// }
// }]
// }
};