Bundling with Webpack
FormValidation was rewritten in ES6 from v1.0.0. It comes with the
dist/es6 directory that consists of ES6 compatible classes. This guide shows how you can bundle FormValidation with Webpack.
Assume that your folder has the following structure:
Now, you can set the alias to FormValidation by adding the
resolve.alias setting to
From now on, you can import any file from FormValidation ES6 package as following: