UNPKG

@digipolis-gent/modal

Version:

An accessible modal library as used by the gent_styleguide for the city of Ghent, Belgium.

40 lines (38 loc) 793 B
const ESLintPlugin = require('eslint-webpack-plugin'); const TerserPlugin = require('terser-webpack-plugin'); module.exports = { devtool: 'source-map', output: { library: { name: 'Modal', type: 'umd', }, umdNamedDefine: true, globalObject: 'this' }, plugins: [ new ESLintPlugin({ extensions: ['.js'], exclude: [ '/node_modules/' ], }) ], module: { rules: [ { test: /\.m?js$/, exclude: /(node_modules|bower_components)/, loader: 'babel-loader', options: { presets: [['@babel/preset-env', {modules: 'commonjs'}]], plugins: ['add-module-exports'] } } ] }, optimization: { minimize: true, minimizer: [new TerserPlugin()], }, };