jsconfig-paths-webpack-plugin

0.1.3 • Public • Published

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

Package Sidebar

Install

npm i jsconfig-paths-webpack-plugin

Weekly Downloads

328

Version

0.1.3

License

MIT

Last publish

Collaborators

  • galy4a