Comments (6)
Hey. Actually there are couple of plugins documented in the core library: https://github.com/JPeer264/node-rcs-core#plugins
Might be useful to also add them in this repo. If you haven't seen it already, there is a webpack plugin for rcs: https://www.npmjs.com/package/rcs-webpack-plugin
from node-rename-css-selectors.
The usage
for https://www.npmjs.com/package/rcs-webpack-plugin, where does this go? The docs don't specify aha
from node-rename-css-selectors.
In addition,
const { rcs } = require('rcs-core')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const RcsWebpackPlugin = require('rcs-webpack-plugin')
mix.webpackConfig({
module: {
rules: [
{
test: /\.css$/,
use: [
{ loader: MiniCssExtractPlugin.loader },
'css-loader',
],
},
],
},
plugins: [
new MiniCssExtractPlugin(),
new RcsWebpackPlugin(),
],
})
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
Error: Didn't get a result from child compiler
from node-rename-css-selectors.
This actually seems like a mini-css-extract-plugin
issue. I've never used Laravel Mix (if that is that one), but maybe you have some scss
files in it where you also need a sass-loader
and use test: /\.s?css$/,
as file tester?
from node-rename-css-selectors.
This actually seems like a
mini-css-extract-plugin
issue. I've never used Laravel Mix (if that is that one), but maybe you have somescss
files in it where you also need asass-loader
and usetest: /\.s?css$/,
as file tester?
Theres no sass sadly, just tailwind .css file
from node-rename-css-selectors.
May I ask how you import the .css
file?
from node-rename-css-selectors.
Related Issues (20)
- 3.2.4 breaks calc with css variables HOT 2
- Messes up with the `~` character HOT 4
- Uncaught TypeError: (0 , r.default)(...).at is not a function HOT 4
- Ignore specific class HOT 1
- renaming html tags such as div HOT 3
- [BUG] It renames EJS HOT 7
- Add documentation for rcsCore usage in rename-css-selectors
- mismatched layout after running rcs HOT 3
- Integration with Gulp HOT 16
- Ids and classes are treated as the same identity HOT 10
- Not completely renamed if there's a line break between class names HOT 6
- Exclude classes with special characters HOT 6
- Does this plugin optimize the library so most frequent classes get one letter not two? HOT 2
- Minify as a function HOT 2
- Bug: Textarea and other common words replaced HOT 3
- Unused css selectors given a one letter selector - is sorting by frequency working correctly? HOT 4
- getElementById string being replaced by class selector name instead of id
- Unchanging custom class name HOT 1
- Is it possible to use rcs-core with vite/rollup)?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-rename-css-selectors.