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

30 lines
533 B
JavaScript

module.exports = {
type: 'react-component',
npm: {
esModules: true,
umd: {
global: 'bluelibreact',
externals: {
react: 'React'
}
}
},
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]'
)
}
}
}
}