JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 163
  • Score
    100M100P100Q64798F
  • License MIT

A library for process themes

Package Exports

  • @ices/theme-webpack-plugin

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ices/theme-webpack-plugin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@ices/theme-webpack-plugin

A library for process themes.

Usage

yarn add @ices/theme-webpack-plugin -D
yarn add @ices/theme

or

npm i @ices/theme-webpack-plugin -D
npm i @ices/theme
// webpack.config.js
const ThemeWebpackPlugin = require('@ices/theme-webpack-plugin')

module.exports = {
  plugins: [
    // use this plugin, then auto inject loader
    // that's all
    new ThemeWebpackPlugin({
      themes: ['src/themes/*.scss'],
      defaultTheme: 'dark',
    }),
  ],
}

Demo

LiveDemo

Support

Syntax

  • SCSS
  • SASS
  • LESS
  • CSS Custom property

CLI

  • Create React App
  • Vue CLI
  • others use webpack

Webpack

  • v4+
  • v5+

@ices/theme