1.1.0 • Published 8 years ago

resolve-path-webpack-plugin v1.1.0

Weekly downloads
16
License
MIT
Repository
github
Last release
8 years ago

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']
    })
  ],
}