export chatbox as react component

This commit is contained in:
Sharon Kennedy 2020-10-15 11:40:12 -04:00
parent b709245b46
commit 8439a1d100
3 changed files with 74 additions and 0 deletions

60
dist/component.js vendored Normal file

File diff suppressed because one or more lines are too long

3
src/outputs/component.js Normal file
View File

@ -0,0 +1,3 @@
import Chatbox from '../components/chatbox';
export default Chatbox;

View File

@ -94,4 +94,15 @@ module.exports = [{
publicPath: '/',
filename: 'bookmarklet.js',
},
}, {
...defaultConfig,
entry: './src/outputs/component.js',
output: {
path: distDir,
publicPath: '/',
filename: 'component.js',
library: 'Chatbox',
libraryExport: 'default',
libraryTarget: 'commonjs2',
},
}];