UNPKG

markup-tools

Version:
17 lines (16 loc) 561 B
const path = require('path'); const webpack = require('webpack'); module.exports = { entry: './lib/index.js', output: { path: path.resolve(__dirname, 'dist'), filename: 'markup-tools.min.js', libraryTarget: 'umd', library: 'mtools', // Workaround to fix umd build, restore webpack v3 behaviour // https://github.com/webpack/webpack/issues/6677 // https://github.com/webpack/webpack/issues/6642 globalObject: 'typeof self !== \'undefined\' ? self : this', }, mode: 'production', };