You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
426 B
16 lines
426 B
2 years ago
|
// webpack config for export react component
|
||
|
|
||
|
const webpackConfig = Object.create(require('./webpack.config.js'))
|
||
|
|
||
|
webpackConfig.entry = './gitalk.jsx'
|
||
|
webpackConfig.output = Object.create(webpackConfig.output)
|
||
|
webpackConfig.output.filename = 'gitalk-component.js'
|
||
|
|
||
|
delete webpackConfig.resolve.alias
|
||
|
webpackConfig.externals = {
|
||
|
react: 'commonjs react',
|
||
|
'react-dom': 'commonjs react-dom'
|
||
|
}
|
||
|
|
||
|
module.exports = webpackConfig
|