poi-preset-magicdawn

0.0.1 • Public • Published

poi-preset-magicdawn

poi preset for self use

Build Status Coverage Status npm version npm downloads npm license

Install

$ npm i poi-preset-magicdawn -S

API

poi.config.js

module.exports = {
  presets: [
    require('poi-preset-magicdawn', options)
  ]
}

functions

  • inline-source-map support, via --debug cli flag
  • image loader config
  • customed filename output, for self use

options

  • image config the image loader
  • image.sizeLimit: string | number, the image size limt, default "10kb"
  • image.output: string, the output of the filenae, default img/[name].[hash:8].[ext]

cli config

  • --debug: if debug, set webpack.devtool = 'inline-source-map', only work in development mode

Changelog

CHANGELOG.md

License

the MIT License http://magicdawn.mit-license.org

Package Sidebar

Install

npm i poi-preset-magicdawn

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • magicdawn