Moved route definitions into env wrapped check, webpackified embed

This commit is contained in:
Wyatt Johnson
2017-02-27 14:21:48 -07:00
parent 303148e5ba
commit 6cd3c84853
4 changed files with 138 additions and 204 deletions
+7 -2
View File
@@ -8,7 +8,8 @@ const webpack = require('webpack');
const buildTargets = [
'coral-admin',
'coral-docs'
'coral-docs',
'coral-embed'
];
const buildEmbeds = [
@@ -38,7 +39,11 @@ module.exports = {
}, {})),
output: {
path: path.join(__dirname, 'dist'),
filename: '[name].js'
filename: '[name].js',
// NOTE: this causes all exports to override the global.Coral, so no more
// than one bundle.js can be included on a page.
library: 'Coral'
},
module: {
rules: [