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.
 
 
 
 
 

15 lines
426 B

// 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