neutrino-middleware-source-map
neutrino-middleware-source-map
is Neutrino middleware for supporting sourceMapfork from poi
Requirements
- Node.js v6.10+
- Yarn or npm client
- Neutrino v6
Install
# yarn $ yarn add neutrino-middleware-source-map# npm $ npm install --save neutrino-middleware-source-map
Usage
neutrino-middleware-source-map
can be consumed from the Neutrino API, middleware, or presets. Require this package and plug it into Neutrino:
// Using function middleware formatconst sourceMap = // Use with default optionsneutrino // Usage showing overriding minification optionsneutrino// Using object or array middleware format // Use with default optionsmoduleexports = use: 'neutrino-middleware-source-map' // Usage showing overriding minification optionsmoduleexports = use: 'neutrino-middleware-source-map' sourceMap: true
Options
sourceMap
Type: string
boolean
Default: true
By default, it use eval-source-map
in development
mode, use inline-source-map
in test
mode, and use source-map
in production
mode.
When give a string
value, will use it in all modes.
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Author
neutrino-middleware-source-map © zcong1993, Released under the MIT License.
Authored and maintained by zcong1993 with help from contributors (list).
github.com/zcong1993 · GitHub @zcong1993