@rootreeweb/rt-webpack-helper
v4.1.8
Published
JavaScript package for generating a standardized WebPack configuration for projects
Downloads
697
Readme
@rootreeweb/rt-webpack-helper
What is This?
@rootreeweb/rt-webpack-helper is a JavaScript package for generating standardized webpack configurations for projects. There are three different base options to choose from:
getWebpackConfigReturns a configuration for bundling web page scripts and styles for use in-browser. This is the most commonly used option.getCssConfigIs a modified version ofgetWebpackConfigthat is specialized for generating stylesheets only. This is useful for scenarios in which the JavaScript portion of the project is not being bundled for browsers. An example of this would be when creating a component library such as @rootreeweb/ui.getWebpackDevConfigReturns a configuration designed for testing JavaScript based apps locally. It takes an HTML page, and a script entry point. It provides a local development server with hot-module-reload. An example use case for this would be the aforementioned @rootreeweb/ui. That library utilizes this configuration to give component authors a live view of the components they are working on.
Usage
Usage instructions can be found in the Bundling With Webpack guide.
