@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.
25 lines (23 loc) • 649 B
JavaScript
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: './ant/App.jsx'
},
externals: {
antd: 'antd',
moment: 'moment'
},
plugins: [
new HtmlWebpackPlugin({
title: 'Ant form',
filename: 'index.html',
template: './ant/index.html'
})
]
});
}