Git Product home page Git Product logo

Comments (4)

kumardeepakme avatar kumardeepakme commented on June 1, 2024 1

I'll try to do that with some dummy setup.

from pug-plugin.

webdiscus avatar webdiscus commented on June 1, 2024

@kumardeepakxyz

thank you for video.
Sorry, I don't know your full setup and I can't start dev server with devServer.proxy.
Can you please create small repo, where I can simple run npm run start to reproduce the issue.

Try to disable the object devMiddleware, it's not needed if used watchFiles or disable watchFiles.

At last, disable proxy as temporary solution.

from pug-plugin.

kumardeepakme avatar kumardeepakme commented on June 1, 2024

Hi @webdiscus

I reconfigured my project from scratch and somehow it seems that this issue is resolved.

I have no idea how it is working fine, but seems to be good for now.

However I do have a question:

How to import CSS that is part of any plugin? for eg CSS with "Splide".

I did it by importing it in SCSS file as @import '../../../node_modules/@splidejs/splide/src/css/core/index'; but is there a better way using pug-plugin?

from pug-plugin.

webdiscus avatar webdiscus commented on June 1, 2024

@kumardeepakxyz

Import CSS/SCSS from node_module is very easy:

@use 'MODULE_NAME/path/to/style';

in your case:

@use '@splidejs/splide/src/css/core/index';

Important: omit the file extension, e.g. .scss, .css

See please in the readme How to import CSS/SCSS from node_module, I have updated it.

Note: the @import is deprecated and at 22 October 2022 will be removed, use the @use

from pug-plugin.

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.