UNPKG

@amxchange/grid-view-web-client

Version:

amxchange grid view framework web client in react ( a module extracted from existing jax )

39 lines (36 loc) 1.12 kB
const MiniCssExtractPlugin = require("mini-css-extract-plugin"); const nodeExternals = require("webpack-node-externals"); module.exports = { entry: "/src/index.js", output: { filename: "index.js", libraryTarget: "umd" }, resolve: { extensions: [".js", ".jsx", ".*"] }, module: { rules: [ { test: /\.(js|jsx)$/, use: { loader: "babel-loader" } }, { test: /\.(sa|sc|c)ss$/, use: [MiniCssExtractPlugin.loader, "css-loader", "postcss-loader", "sass-loader"] }, { test: /\.(png|jpe?g|gif)$/i, type: "asset/resource" } ] }, plugins: [new MiniCssExtractPlugin()], externals: [nodeExternals()] }; /** * https://stackoverflow.com/questions/56021112/react-hooks-in-react-library-giving-invalid-hook-call-error * https://stackoverflow.com/questions/58383048/how-do-i-use-react-hooks-in-my-component-library */