Nutella Peanut-Butter Marshmallow

    webpack-blocks-server-source-map

    0.2.0 • Public • Published

    webpack-blocks-server-source-map

    Generated with nod NPM version Build Status Coverage Status

    A webpack block that adds source map support to server bundle.

    Install

    $ npm install --save-dev webpack-blocks-server-source-map
    

    Usage

    const { createConfig } = require('@webpack-blocks/webpack2')
    const serverSourceMap = require('webpack-blocks-server-source-map')
     
    module.exports = createConfig([
      serverSourceMap()
    ])

    How it does

    • changes devtool to sourcemap;
    • inserts require("source-map-support").install(); at the top of generated server files to require source-map-support and enable source map.

    For more details, see src/index.js.

    API

    serverSourceMap

    Adds source map support to server bundle.

    Parameters

    • devtool string? (optional, default 'source-map')

    Returns Function webpack block

    Other useful webpack blocks

    License

    MIT © Diego Haz

    Install

    npm i webpack-blocks-server-source-map

    DownloadsWeekly Downloads

    2

    Version

    0.2.0

    License

    MIT

    Last publish

    Collaborators

    • diegohaz