check-realpath-webpack-plugin

1.0.1 • Public • Published

check-realpath-webpack-plugin

This is a webpack plugin that check native real path in Windows and MacOS.

Installation

npm i check-realpath-webpack-plugin -D

Usage

webpack.config.js

const CheckRealPathPlugin = require('check-realpath-webpack-plugin')
// ...

module.exports = {
  // ...
  plugins: [
    new CheckRealPathPlugin(),
    // ...
  ],
}

Notice

  1. Used with html-webpack-plugin

    // ...
    module.exports = {
      // ...
      module: {
        rules: [
          // ...
          {
            test: /\.html$/i,
            loader: require.resolve('html-webpack-plugin/lib/loader'),
            options: {
              force: true,
            }
          }
        ]
      }
    }

License

MIT

/check-realpath-webpack-plugin/

    Package Sidebar

    Install

    npm i check-realpath-webpack-plugin

    Weekly Downloads

    6

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    2.56 kB

    Total Files

    4

    Last publish

    Collaborators

    • zuojiang