webpack-css-modules

v0.0.8arrow_drop_down
v0.0.8
v0.0.7
v0.0.6
v0.0.5
v0.0.4
v0.0.3
v0.0.2
v0.0.1
STATUS
Passing
DOWNLOADS
650
LICENSE
MIT
VISIBILITY
Public
subject
A component [compiler](https://docs.bitsrc.io/docs/ext-compiling.html) that bundles the component using [webpack](https://webpack.js.org/) v4.1.1.
3 contributors
Like
Use webpack-css-modules in your project ?
Copied
npm i @bit/bit.envs.bundlers.webpack-css-modules
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
Component Example
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
<div> <Markdown> {`# Webpack bundler A component [compiler](https://docs.bitsrc.io/docs/ext-compiling.html) that bundles the component using [webpack](https://webpack.js.org/) v4.1.1. ## What is bundled? The bundler bundles the component's main file and test files. In case there are component files that are not in those files' dependency trees, they won't be bundled. Note that this is in accordance with webpack's usual behavior, but not in accordance with the usual behavior of Bit compilers, which usually compile all the files. ## How to use? Import the environment. bit import bit.envs/bundlers/webpack-css-modules --compiler Then build using [bit build](https://docs.bitsrc.io/docs/cli-build.html). bit build `} </Markdown> </div>;
modified
chevron_left
chevron_right

Webpack bundler

A component compiler that bundles the component using webpack v4.1.1.

What is bundled?

The bundler bundles the component’s main file and test files. In case there are component files that are not in those files’ dependency trees, they won’t be bundled. Note that this is in accordance with webpack’s usual behavior, but not in accordance with the usual behavior of Bit compilers, which usually compile all the files.

How to use?

Import the environment.

 bit import bit.envs/bundlers/webpack-css-modules -c

Then build using bit build.

bit build