UNPKG

react-scryfall-components

Version:
27 lines (25 loc) 617 B
const path = require('path'); const nodeExternals = require('webpack-node-externals'); module.exports = { entry: path.resolve(__dirname, 'src/index.js'), output: { path: path.resolve(__dirname, './dist'), filename: 'react-scryfall-components.umd.js', library: 'ReactScryfallComponents', libraryTarget: 'umd', }, externals: [nodeExternals()], module: { rules: [ { test: /\.js$/, exclude: /(node_modules|bower_components)/, loader: 'babel-loader', }, { test: /\.css$/, use: ['style-loader', 'css-loader'], }, ], }, };