@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.
30 lines (28 loc) • 716 B
JavaScript
const path = require('path');
const common = require('./webpack.common');
const webpack = require('webpack');
const merge = require('webpack-merge')
module.exports = merge(common, {
mode: 'development',
output: {
publicPath: '/'
},
devServer: {
contentBase: [path.join(__dirname, 'public')],
historyApiFallback: true,
hot: true
},
module: {
rules: [
{
test: /\.(css|less)$/,
use: ['style-loader', 'css-loader', 'less-loader']
}
]
},
devtool: 'inline-source-map',
plugins: [
new webpack.NamedModulesPlugin(),
new webpack.HotModuleReplacementPlugin()
]
});