Giter Site home page Giter Site logo

Comments (6)

JPeer264 avatar JPeer264 commented on June 12, 2024

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.

heychazza avatar heychazza commented on June 12, 2024

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.

heychazza avatar heychazza commented on June 12, 2024

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.

JPeer264 avatar JPeer264 commented on June 12, 2024

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.

heychazza avatar heychazza commented on June 12, 2024

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?

Theres no sass sadly, just tailwind .css file

from node-rename-css-selectors.

JPeer264 avatar JPeer264 commented on June 12, 2024

May I ask how you import the .css file?

from node-rename-css-selectors.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.