Comments (5)
Thanks! Maybe I missed some @imports in index.scss.
from generator-sppp.
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:
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.
@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.
Okay. Let's try it out right now.
- Running
yo sppp
- Selecting 'Fluent UI (React inlcuded)'
- Running
npm run build
- 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.
With default configs:
With a custom one:
from generator-sppp.
Related Issues (20)
- custom task are not working when created in the ./buils/tasks as per Documentations. HOT 1
- no site url? HOT 2
- spsave: Error occured when running gulp push HOT 2
- multi-factor authentication HOT 2
- cannot find module 'node-sass' HOT 9
- Publish to SP fails if there's a mandatory field to be set HOT 3
- Where are the gulp tasks? HOT 3
- Adding external libraries HOT 4
- Watch with multiple entry points HOT 3
- Migrate TSLint to ESLint configuration and dependencies
- How can I leverage the master page folder in this project? HOT 3
- Dev proxy and other webs HOT 2
- Request for SPPP deployment thru Azure Dev Ops sample HOT 2
- React development environment HOT 5
- SPPull is not a function HOT 1
- dev server script directory HOT 5
- Question: what am I missing adding RTF-to-HTML third-party library? .. HOT 2
- File not found using sp.web.getFolderByServerRelativeUrl(folder).files.add(`test.rtf`, templateData, true); HOT 6
- How to deploy to prod correctly? HOT 6
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 generator-sppp.