resolve-path-webpack-plugin

1.1.0 • Public • Published

resolve path for webpack

!!!!!!!!!!!!!!!!!!!

Usage

Do:

var test = require('test.js');

Instead of:

var test = require('./xxxx/test.js');

Installation

npm i resolve-path-webpack-plugin --save

Example Webpack Config

var ResolvePathWebpackPlugin = require('resolve-path-webpack-plugin');

module.exports = {
  plugins: [
    new ResolvePathWebpackPlugin()
  ],
  resolve: {
    root: __dirname,
    ignore: ['**/*.test']
  }
}

or

module.exports = {
  plugins: [
    new ResolvePathWebpackPlugin({
      root: __dirname,

      // Will always `+ ['node_modules/**']`
      ignore: ['**/*.test']
    })
  ],
}

/resolve-path-webpack-plugin/

    Package Sidebar

    Install

    npm i resolve-path-webpack-plugin

    Weekly Downloads

    0

    Version

    1.1.0

    License

    MIT

    Last publish

    Collaborators

    • yadan