config-webpack
Version:
Plugin that makes node-config work with Webpack
13 lines (8 loc) • 768 B
Markdown
Contributing to node-config-webpack
===================================
There is one source file, `src/ConfigWebpackPlugin.js`. It is written in ES6 and transpiled using Babel.
**Build:** `npm run build` builds a Node-ready JS file in `dist/ConfigWebpackPlugin.js`.
**Test:** `npm run test` runs tests with whatever webpack version is installed currently. "Client-side" scripts that need to access the config are in the `test-resources` folder. These are bundled by webpack into the `build` folder.
Notes on Webpack versions
-------------------------
This project should support Webpack versions `3.x` and `4.x`. Two commands, `npm run test3` and `npm run test4` install both respective versions and test them. Travis CI is set up to build and test both versions.