Skip to content

pantoken-root / bundlers/webpack/src / PantokenWebpackPlugin

Dosbarth: PantokenWebpackPlugin ​

Arbrofol

Plugin webpack sy'n allyrru'r dalen arddull pantoken fel ased allbwn.

Enghreifftiau ​

Allanoli pantoken.css o'ch webpack.config.js

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

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

Ailenwi'r ased a gafodd ei allyrru

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

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

Constructwyr ​

Constructwr ​

new PantokenWebpackPlugin(options?): PantokenWebpackPlugin

Arbrofol

Paramedrau ​

options? ​

PantokenWebpackOptions = {}

Yn dychwelyd ​

PantokenWebpackPlugin

Dulliau ​

apply() ​

apply(compiler): void

Arbrofol

Paramedrau ​

compiler ​

CompilerLike

Yn dychwelyd ​

void