0.0.1 • Published 9 years ago
poi-preset-magicdawn v0.0.1
poi-preset-magicdawn
poi preset for self use
Install
$ npm i poi-preset-magicdawn -SAPI
poi.config.js
module.exports = {
presets: [
require('poi-preset-magicdawn', options)
]
}functions
- inline-source-map support, via
--debugcli flag - image loader config
- customed filename output, for self use
options
imageconfig the image loaderimage.sizeLimit:string | number, the image size limt, default"10kb"image.output:string, the output of the filenae, defaultimg/[name].[hash:8].[ext]
cli config
--debug: if debug, setwebpack.devtool = 'inline-source-map', only work indevelopmentmode
Changelog
License
the MIT License http://magicdawn.mit-license.org
0.0.1
9 years ago