mirror of
https://github.com/Safe-Support-Chat/ocrcc-chatbox
synced 2024-11-21 18:24:54 +00:00
export chatbox as react component
This commit is contained in:
parent
b709245b46
commit
8439a1d100
60
dist/component.js
vendored
Normal file
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
3
src/outputs/component.js
Normal file
@ -0,0 +1,3 @@
|
||||
import Chatbox from '../components/chatbox';
|
||||
|
||||
export default Chatbox;
|
@ -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',
|
||||
},
|
||||
}];
|
||||
|
Loading…
Reference in New Issue
Block a user