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: './material/App.jsx' }, plugins: [ new HtmlWebpackPlugin({ title: 'Material form', filename: 'index.html', template: './material/index.html' }) ], externals: { '@material-ui': 'MaterialUI' } }); }