Package Exports
- webpack-blocks-more
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (webpack-blocks-more) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
webpack-blocks-more · 
A set of well-thought 📦webpack-blocks for real-world projects.
Designed to be used with webpack@3+
and webpack-blocks@1+
.
Table of Content
API
setEnv([options])
Sets environmental variables to process.env
and EnvironmentPlugin.
Arguments
[options]
(Array|Object): Any enumerable properties.
Example
setEnv({
NODE_ENV: 'development',
HOT: true,
})
watch([options])
Watch mode.
Arguments
[options]
(Object): See watchOptions for available properties.
babelLoader([options])
Built on top of babel-loader.
Arguments
[options]
(Object):babel-loader
options.
Example
const {createConfig, match} = require('@webpack-blocks/webpack');
const {babelLoader} = require('webpack-blocks-more');
module.exports = createConfig([
match('*.js', {exclude: /node_modules/}, [
babelLoader({
cacheDirectory: true,
}),
]),
]);