bruno/packages/grafnode-components/webpack.config.js

31 lines
725 B
JavaScript
Raw Normal View History

const path = require('path');
module.exports = {
entry: "./src/index.js",
output: {
globalObject: 'this',
filename: "index.js",
path: path.resolve(__dirname, "dist"),
libraryTarget: "umd",
library: "@grafnode/components"
},
module: {
rules: [
{
test: /\.jsx?$/,
exclude: /node_modules/,
use: {
loader: "babel-loader"
}
}
]
},
externals: {
2021-12-03 19:46:54 +01:00
'react': 'react',
'styled-components': 'styled-components',
'@tabler/icon': '@tabler/icon',
'@fortawesome/free-solid-svg-icons': '@fortawesome/free-solid-svg-icons',
2021-12-03 21:33:46 +01:00
'@fortawesome/react-fontawesome': '@fortawesome/react-fontawesome',
'classnames': 'classnames'
}
};