UNPKG

@piscium2010/v-form

Version:

This is not a form, instead it is only a form shell of which the single responsibility is validating and providing error messages. Capable of definding flexiable rules and validating multi fields at a time.

23 lines (22 loc) 648 B
const HtmlWebpackPlugin = require('html-webpack-plugin') const dev = require('../webpack.dev') const prod = require('../webpack.prod') const merge = require('webpack-merge') module.exports = env => { const common = env.NODE_ENV === 'production' ? prod : dev return merge(common, { entry: { app: './fabric/App.jsx' }, externals: { "office-ui-fabric-react": 'Fabric' }, plugins: [ new HtmlWebpackPlugin({ title: 'Fabric form', filename: 'index.html', template: './fabric/index.html' }) ] }); }