Giter Site home page Giter Site logo

Comments (6)

JPeer264 avatar JPeer264 commented on June 12, 2024

Hey, thanks for you issue. This sounds like a great feature. I'll implement this soon :)

from node-rename-css-selectors.

JPeer264 avatar JPeer264 commented on June 12, 2024

@grkblood13 I am currently implementing this feature. Would you expect the output to be pug or html?

from node-rename-css-selectors.

grkblood13 avatar grkblood13 commented on June 12, 2024

The output should be pug. The rendering engine will then handle converting that to html for the requester.

from node-rename-css-selectors.

JPeer264 avatar JPeer264 commented on June 12, 2024

You can now use rcs.process.pug() in v3.1.0. If you have any issues, please let me know.

from node-rename-css-selectors.

grkblood13 avatar grkblood13 commented on June 12, 2024

I can't seems to get the pug files to render. It keeps erroring out:

TypeError: Cannot read property 'val' of undefined
at /home/test/project/node_modules/rename-css-selectors/node_modules/rcs-core/dest/replace/pug.js:82:37
at Array.map ()
at /home/test/project/node_modules/rename-css-selectors/node_modules/rcs-core/dest/replace/pug.js:80:43
at walkAST (/home/test/project/node_modules/pug-walk/index.js:23:18)
at /home/test/project/node_modules/pug-walk/index.js:104:20
at Array.reduce ()
at walkAndMergeNodes (/home/test/project/node_modules/pug-walk/index.js:103:18)
at walkAST (/home/test/project/node_modules/pug-walk/index.js:37:19)
at walkAST (/home/test/project/node_modules/pug-walk/index.js:48:21)
at /home/test/project/node_modules/pug-walk/index.js:104:20

from node-rename-css-selectors.

JPeer264 avatar JPeer264 commented on June 12, 2024

Can you maybe reduce your pug file to reproduce this and open a new issue?

There might be some script or style tag in your pug file, which causes this bug.

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.