resolve-path-webpack-plugin
v1.1.0
Published
resolve-path
Downloads
3
Maintainers
Readme
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']
})
],
}