Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

The supplementary repo for the CSS Modules share

NotificationsYou must be signed in to change notification settings

RegisBiron/css-modules-share

Repository files navigation

This is the supplementary repository for my css modules share.

Setup Prerequisites

  • nvm
  • yarn
    • can be installed with homebrew:brew install yarn
    • optionally installed with npm:npm install yarn --g

Setup Instructions

  • clone this repo
  • nvm use
  • yarn install
  • npm run start - Starts thewebpack-dev-server and usesreact-hot-loader for HMR

About CSS Modules

  • css modules docs
  • This repo uses React and in order for React / Webpack CSS Loader to interpolate your styles use the following pattern
importstylesfrom'./styles.css';<pclassName={styles.summaryText}>Lorem ipsum dolor sit amet...</p>
/* styles.css */.summaryText {font-size:1rem;color: blue;}
  • The official CSS Modules docs suggest to use camelCase fornaming.

About PostCSS

  • This repo uses PostCSS as a post-processor feel free to add in more plugins

PostCSS Plugin Installation

  • yarn add --dev postcss-plugin-name

  • Locate the postcss.config.js file in the root directory

module.exports={plugins:[require('autoprefixer'),// add your plugin here]};

About

The supplementary repo for the CSS Modules share

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp