UNPKG

@formio/vanilla-text-mask

Version:

JavaScript function that makes input HTML element accept mask pattern

41 lines (35 loc) 839 B
var StatsPlugin = require('stats-webpack-plugin') var webpack = require('webpack') var path = require('path') module.exports = { entry: path.join(__dirname, './src/vanillaTextMask.js'), module: { loaders: [ {test: /\.js$/, loaders: ['babel-loader']} ] }, output: { path: path.join(__dirname, './dist'), filename: 'vanillaTextMask.js', library: 'vanillaTextMask', libraryTarget: 'umd' }, resolve: { extensions: ['', '.js'] }, plugins: [ new webpack.optimize.OccurenceOrderPlugin(), new webpack.DefinePlugin({ 'process.env.NODE_ENV': JSON.stringify('production') }), new webpack.optimize.UglifyJsPlugin({ compressor: { screw_ie8: true, warnings: false } }), new StatsPlugin('stats.json', { chunkModules: true }) ] }