Skip to content
No description, website, or topics provided.
CSS TypeScript JavaScript HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
src
test
.eslintrc.js
.gitignore
.npmignore
.travis.yml
CHANGELOG.md
README.md
global.d.ts
jest.config.js
package-lock.json
package.json
tsconfig.json
yarn.lock

README.md

MIT Licence npm version Build Status Coverage Status

rcs webpack plugin

The webpack plugin for rcs-core

Contents

Installation

$ npm i rcs-webpack-plugin -D

Usage

import MiniCssExtractPlugin from 'mini-css-extract-plugin';
import RcsWebpackPlugin from 'rcs-webpack-plugin';

export default {
  module: {
    rules: [
      {
        test: /\.css$/,
        use: [
          { loader: MiniCssExtractPlugin.loader },
          'css-loader',
        ],
      },
    ],
  },
  plugins: [
    new MiniCssExtractPlugin(),
    new RcsWebpackPlugin(),
  ],
};

Options

fillLibraries (boolean)

fillLibraries is to wether or not rcs should get prefilled with selectors. Turning off is usefull if you used postcss-rcs or plain rcs-core.

Default: true

fillLibrariesOptions (object)

fillLibrariesOptions just applies if { fillLibraries: true }. These options are the same as rcs-core@fillLibraries

espreeOptions (object)

espreeOptions are mainly for the JS parsing. These options are the same as rcs-core@replaceJs

LICENSE

MIT © Jan Peer Stöcklmair

You can’t perform that action at this time.