Git Product home page Git Product logo

Comments (5)

ph1l74 avatar ph1l74 commented on June 16, 2024 1

Thanks! Maybe I missed some @imports in index.scss.

from generator-sppp.

koltyakov avatar koltyakov commented on June 16, 2024

Hey @ph1l74,

Thanks for using sppp generator!

The default bundling option for stand alone CSS is adding reference to your SCSS in ./src/styles/index.scss this should end up with minified:

image

It can be extended with bundleCSSLibsFiles (https://github.com/koltyakov/sp-build-tasks/wiki/Build-options:-CSS-Libs) or customStyles (https://github.com/koltyakov/sp-build-tasks/wiki/Build-options:-Custom-styles).

Alternatively, webpack.config.js can be extended with any extra loader and plugins.

from generator-sppp.

ph1l74 avatar ph1l74 commented on June 16, 2024

@koltyakov
Yeah, I understand that, but there are too much components in my project that included in Component Directory (like in yours example: Error, Loading, Example). But index.scss and app.css are empty after build even if bundleCssLibsFiles was appended in app.json.

from generator-sppp.

ph1l74 avatar ph1l74 commented on June 16, 2024

Okay. Let's try it out right now.

  1. Running yo sppp
  2. Selecting 'Fluent UI (React inlcuded)'
  3. Running npm run build
  4. Checking .dist dir, but app.css is empty.

The only one way for me to compile scss styles is to combine each component style file in one (styles/index.scss) and append this string to app.json:

  "customStyles": [{
    "src": "styles/index.scss",
    "dist": "styles/index.min.css"
  }]

from generator-sppp.

koltyakov avatar koltyakov commented on June 16, 2024

With default configs:

image

With a custom one:

image

from generator-sppp.

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.