![]() ![]() The WebPack Task Runner automatically triggers when it finds WebPack configuration files. If you wish to use babel to run WebPack, you must first install it locally in your project: npm install babel-core -save-dev. It’s the recommended setup, because webpack can be updated per-project. createVariants(variants: Object): ObjectĬreates all possible variations from the given variants and returns them as a flat array. To use the server functionality you also need to install webpack-dev-server like so: npm install webpack-dev-server -g. Webpack can be installed locally as well. createVariants(baseConfig: Object, variants: Object): ObjectĪlters the given baseConfig with all possible variants and returns it. ![]() ![]() Maps the result into a valid webpack configuration using the given configCallback. createVariants(variants: Object, configCallback: Function): ObjectĬreates all possible variations as specified in the variants object and createVariantsĬreateVariants(baseConfig: Object, variants: Object, configCallback: Function): ObjectĪlters the given baseConfig with all possible variants and maps the result intoĪ valid webpack configuration using the given configCallback. NOTE: In watch mode notify callback provided with Node.js API will run only once createVariants // Those options will be mixed into every variant // and passed to the `createConfig` callback. Var createVariants = require ( 'parallel-webpack' ).
0 Comments
Leave a Reply. |