@best-shot/preset-style

0.12.9 • Public • Published

@best-shot/preset-style logo

A best-shot preset for stylesheet.

npm github node

This preset offer the following features:

Installation

npm install @best-shot/preset-style --save-dev

Usage

// example: .best-shot/config.mjs
export default {
  presets: ['style']
};

CSS Modules support

Use [name].module.[extname] as filename.

import { bar } from './bar.module.scss';
import { foo } from './foo.module.css';

Use CSS Modules in Vue.js. Learn more

<!-- example.vue -->
<style lang="css" module></style>
<style lang="scss" module></style>
<style lang="less" module></style>

Tips

Load custom postcss config

Write your config in any way. See https://github.com/postcss/postcss-load-config

// example: postcss.config.cjs
module.exports = {
  plugins: {
    'postcss-preset-env': {}
  }
};

Related

Package Sidebar

Install

npm i @best-shot/preset-style

Weekly Downloads

164

Version

0.12.9

License

MIT

Unpacked Size

9.41 kB

Total Files

6

Last publish

Collaborators

  • airkro