minimal main.js

This commit is contained in:
Sebastian Frank
2017-09-25 12:31:39 +02:00
parent 606847d2db
commit b39117e074
4 changed files with 76 additions and 63 deletions

View File

@@ -30,17 +30,25 @@ if (env === 'production') {
// Main Settings config
module.exports = {
entry: [
'intersection-observer',
'babel-polyfill',
entryPoint
],
entry: {
lib: [
'intersection-observer',
'babel-polyfill',
'./src/lib/baseui.js'
],
main: [
'intersection-observer',
'babel-polyfill',
entryPoint
]
},
devtool: 'source-map',
output: {
path: exportPath,
publicPath: 'build/',
filename: '[name].bundle.js',
chunkFilename: '[name].bundle.js'
filename: 'baseui-[name].bundle.js',
library: 'baseUI',
libraryTarget: 'umd'
},
module: {
loaders: [{