1
Fork 0
mirror of https://github.com/Steffo99/bluelib.git synced 2024-12-22 19:44:21 +00:00
bluelib/nwb.config.js

31 lines
533 B
JavaScript
Raw Normal View History

2021-01-25 18:37:58 +00:00
module.exports = {
type: 'react-component',
npm: {
esModules: true,
umd: {
global: 'bluelibreact',
externals: {
react: 'React'
}
}
2021-01-25 18:44:01 +00:00
},
babel: {
"presets": [
"@babel/preset-react",
"@babel/preset-env"
]
},
webpack: {
rules: {
css: {
modules: true,
localIdentName: (
process.env.NODE_ENV === 'production'
? '[path][name]-[local]-[hash:base64:5]'
: '[hash:base64:5]'
)
}
}
2021-01-25 18:37:58 +00:00
}
}