webpack-kit-nimedev
v14.1.1
Published
Configuration blocks to use in webpack config.
Downloads
10
Maintainers
Readme
webpack-kit-nimedev
Base configuration blocks to use in webpack config.
Installation
# Install webpack-kit-nimedev
$ npm i webpack-kit-nimedev -D
Use
const path = require('path')
const webpackKit = require('webpack-kit-nimedev')
const merge = require('webpack-merge')
// Webpack config object
module.exports = merge({
// Loaders
webpackKit.loadPostCSS({
include: path.join(__dirname, 'src/app')
}),
// Plugins
webpackKit.circularDependency()
// Config webpack dev server
webpackKit.devServer({
port: 3010
})
})
Available blocks
- bundleAnalyzer
- circularDependency
- copyPlugin
- devServer
- extractFonts
- extractPostCSS
- htmlPlugin
- lintCSS
- loadFonts
- loadImages
- loadPostCSS
- loadSvgSprite