jsconfig-paths-webpack-plugin
v0.1.3
Published
Use this to load modules whose location is specified in the `paths` section of `jsconfig.json` when using webpack.
Downloads
1,980
Maintainers
Readme
tsconfig-paths-webpack-plugin
Use this to load modules whose location is specified in the paths
section of
jsconfig.json
when using webpack.
How to install
yarn add --dev jsconfig-paths-webpack-plugin
or
npm install --save-dev jsconfig-paths-webpack-plugin
How to use
In your webpack config add this:
var JsConfigPathsPlugin = require('jsconfig-paths-webpack-plugin');
resolve: {
plugins: [
new JsconfigPathsPlugin(/* { configFileName: "path/to/jsconfig.json" } */)
]
}
Options
configFile (string) (default='jsconfig.json')
Allows you to specify where to find the configuration file.
How to test
To run the provided tests:
yarn test