SCSS Webpack & Typescript examples

Hello,

Can you please provide some examples on how properly set up webpack config? I'm using typescript, webpack with dart sass.
I have attached my webpack.config.js. It generates only the js file without any css. Couldn't find any documentation in your javascript area.
app.ts
import "../node_modules/@syncfusion/ej2-inputs/styles/material.scss";

Attachment: webpack.config.js_b467aced.zip

2 Replies 1 reply marked as answer

AN Andrei May 15, 2021 04:25 PM UTC

I've managed to get it to work.

I've created a "local" .scss file:
@import "~@syncfusion/ej2/material";

Then I've imported that scss in app.ts and the css got generated.

Marked as answer

JA Jesus Arockia Sankaran S Syncfusion Team May 17, 2021 12:09 PM UTC

Hi Andrei, 
 
We are glad that you have managed to find the solution. 
 
Regards, 
Jesus Arockia Sankaran S 


Loader.
Up arrow icon