UNPKG

react-datepicker2-elhampour

Version:

react datepicker component. (include persian jalaali calendar)

30 lines (27 loc) 757 B
const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const HtmlWebpackPluginConfig = new HtmlWebpackPlugin({ template: './docs/preview/index.html', filename: './index.html', inject:'false' }) module.exports = { entry: './docs/src/boot.js', output: { path: path.resolve(__dirname, 'docs/preview'), libraryTarget: 'umd', filename: 'demo_bundles.js', library: 'react-datepicker2' }, module: { loaders: [ { test: /\.(js|jsx)$/, loader: 'babel-loader', exclude: /node_modules/, query: { plugins: ['transform-runtime'], presets: ['es2015', 'stage-0', 'react'], } } ] }, plugins: [HtmlWebpackPluginConfig] }