UNPKG

date-input-polyfill

Version:

Automatically adds datepickers to input[type=date] on IE, Firefox, and OS X Safari.

51 lines (45 loc) 921 B
var webpack = require('webpack'); module.exports = { entry: './date-input-polyfill.js', plugins: [ new webpack.optimize.UglifyJsPlugin({ mangle: { except: ['$super', '$', 'exports', 'require'] }, compress: { warnings: false } }) ], resolve: { extensions: ['', '.js'] }, module: { loaders: [ { test: /\.js$/, exclude: /(node_modules)/, loader: 'babel', query: { plugins: ['transform-runtime'], presets: ['es2015', 'stage-3'], cacheDirectory: true } }, { test: /\.css$/, loader: 'style!css' }, { test: /\.scss$/, loader: 'style!css!sass' } ] }, devtool: 'cheap-module-eval-source-map', output: { path: process.cwd()+'/', filename: 'date-input-polyfill.dist.js', libraryTarget: 'umd' } };