Skip to content

pantoken-root / bundlers/webpack/src / PantokenWebpackPlugin

Classe: PantokenWebpackPlugin ​

Expérimental

Plugin Webpack qui émet la feuille de style pantoken en tant qu'asset de sortie.

Exemples ​

Émettre pantoken.css depuis votre webpack.config.js

js
import { PantokenWebpackPlugin } from "@pantoken/webpack";

export default {
  plugins: [new PantokenWebpackPlugin()],
};

Renommer l'asset émis

js
import { PantokenWebpackPlugin } from "@pantoken/webpack";

export default {
  plugins: [new PantokenWebpackPlugin({ filename: "tokens.css" })],
};

Constructeurs ​

Constructeur ​

new PantokenWebpackPlugin(options?): PantokenWebpackPlugin

Expérimental

Paramètres ​

options? ​

PantokenWebpackOptions = {}

Renvoie ​

PantokenWebpackPlugin

Méthodes ​

apply() ​

apply(compiler): void

Expérimental

Paramètres ​

compiler ​

CompilerLike

Renvoie ​

void