pragma-loader

0.4.0 • Public • Published

Pragma loader for webpack

Usage:

Add the following to your webpack config

{..., loaders: ['pragma-loader']}

Options:

Custom pragma

You'll likely want to add your own pragma. The default is /** @pragma */.

{..., loaders: ['pragma-loader?pragma=/** @skipCompiler */']}

Modify source file

This will do an async fs.writeFile() to add the pragma to any touched resource.

{..., loaders: ['pragma-loader?modifySource']}

/pragma-loader/

    Package Sidebar

    Install

    npm i pragma-loader

    Weekly Downloads

    0

    Version

    0.4.0

    License

    MIT

    Last publish

    Collaborators

    • jeffchan