mirror of
https://github.com/wassname/talk.git
synced 2026-08-17 11:27:52 +08:00
Moved route definitions into env wrapped check, webpackified embed
This commit is contained in:
+7
-2
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user