swanie21 / Sass Css Modules Webpack
Create React App with Sass and CSS Modules
Stars: ✭ 78
Programming Languages
javascript
184084 projects - #8 most used programming language
Labels
Projects that are alternatives of or similar to Sass Css Modules Webpack
Dev Toolkit
Universal Development Toolkit for Javascript People
Stars: ✭ 134 (+71.79%)
Mutual labels: sass, css-modules
Typed Scss Modules
🎁 Generate type definitions (.d.ts) for CSS Modules using SCSS
Stars: ✭ 192 (+146.15%)
Mutual labels: sass, css-modules
Rollup Plugin Styles
🎨 Universal Rollup plugin for styles: PostCSS, Sass, Less, Stylus and more.
Stars: ✭ 116 (+48.72%)
Mutual labels: sass, css-modules
Moo Css
模块化面向对象的css写法规范策略。适用于大中小型C端项目样式开发,旨在提高开发和维护效率。
Stars: ✭ 79 (+1.28%)
Mutual labels: sass, css-modules
Redux Webpack Es6 Boilerplate
A starter project for modern React apps with Redux
Stars: ✭ 566 (+625.64%)
Mutual labels: sass, css-modules
React Native Css Modules
Style React Native components using CSS, PostCSS, Sass, Less or Stylus.
Stars: ✭ 207 (+165.38%)
Mutual labels: sass, css-modules
React Redux Universal Boilerplate
An Universal ReactJS/Redux Boilerplate
Stars: ✭ 165 (+111.54%)
Mutual labels: sass, css-modules
Selft Resume Website
selft-resume-website,用react开发的简单的个人简历网站。适合react新手入门练习。
Stars: ✭ 7 (-91.03%)
Mutual labels: sass, css-modules
Rollup Plugin Postcss
Seamless integration between Rollup and PostCSS.
Stars: ✭ 507 (+550%)
Mutual labels: sass, css-modules
Kratos Boilerplate
🔥 A simple boilerplate for creating statics PWA using Webpack, Pug, PostCSS and CSS Modules
Stars: ✭ 308 (+294.87%)
Mutual labels: sass, css-modules
Css Blocks
High performance, maintainable stylesheets.
Stars: ✭ 6,320 (+8002.56%)
Mutual labels: sass, css-modules
React 5ddm
5d动漫,使用React,服务端渲染,接口(不开源)来自赞片CMS。仅供参考,交流群:14646823 欢迎加入
Stars: ✭ 50 (-35.9%)
Mutual labels: sass, css-modules
Eleventy Webpack
A barebone Eleventy and Webpack boilerplate 🎈
Stars: ✭ 68 (-12.82%)
Mutual labels: sass
Sing App
💥Free and open-source admin dashboard template built with Bootstrap 4.5 💥
Stars: ✭ 1,187 (+1421.79%)
Mutual labels: sass
Propeller
Propeller - Develop more, Code less. Propeller is a front-end responsive framework based on Google's Material Design Standards & Bootstrap.
Stars: ✭ 1,150 (+1374.36%)
Mutual labels: sass
Ts Transform Css Modules
Extract css class names from required css module files for TypeScript
Stars: ✭ 75 (-3.85%)
Mutual labels: css-modules
Bathe
The simplest WordPress starter theme including full setup for Sass, PostCSS, Autoprefixer, stylelint, Webpack, Eslint, imagemin, Browsersync, etc.
Stars: ✭ 65 (-16.67%)
Mutual labels: sass
How to install Sass and CSS Modules into your Create React App
This project was bootstrapped with Create React App.
npm run eject
yarn eject
npm i sass-loader node-sass --save
yarn add sass-loader node-sass
Modify the webpack.config.dev.js
file
const ExtractTextPlugin = require('extract-text-webpack-plugin');
{
exclude: [
/\.html$/,
/\.(js|jsx)$/,
/\.css$/,
/\.json$/,
/\.bmp$/,
/\.gif$/,
/\.jpe?g$/,
/\.png$/,
/\.scss$/,
],
loader: require.resolve('file-loader'),
options: {
name: 'static/media/[name].[hash:8].[ext]',
},
},
{
test: /\.css$/,
use: ExtractTextPlugin.extract({
fallback: 'style-loader',
use: [
{
loader: 'css-loader',
options: {
modules: true,
localIdentName: '[name]__[local]___[hash:base64:5]'
}
},
'postcss-loader'
]
})
},
{
test: /\.scss$/,
use: ExtractTextPlugin.extract({
fallback: 'style-loader',
use: [
{
loader: 'css-loader',
options: {
modules: true,
sourceMap: true,
importLoaders: 2,
localIdentName: '[name]__[local]___[hash:base64:5]'
}
},
'sass-loader'
]
})
},
plugins: [
new ExtractTextPlugin({ filename: 'styles.css', allChunks: true, disable: process.env.NODE_ENV !== 'production' }),
]
- In order for hot reloading you will need to disable the Extract Text Plugin in the dev environment. This can be accomplished by adding
disable: process.env.NODE_ENV !== 'production'
in the ExtractTextPlugin options.
Create postcss.config.js
file
module.exports = { plugins: [require('autoprefixer')] };
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].