Taritsyn / DartSassHost

.NET wrapper around the Dart Sass.
MIT License
21 stars 3 forks source link

JS Files of Dart Sass. #3

Closed AlexisIndustries closed 3 years ago

AlexisIndustries commented 3 years ago

Hi!

it is not really an issue, it is just a question and a question is too simple:

Your project contains compiled files of dart sass. How did you compile dart sass into js file or where do you get this files from?

Taritsyn commented 3 years ago

Hello!

I get a sass.dart.js file from the sass NPM package.

AlexisIndustries commented 3 years ago

But what is that file: sass-combined.es6? It has a different structure and why the file with the extension .es6?

(Sorry for so dumb questions)

Taritsyn commented 3 years ago

The sass-combined.es6 file contains a Node.js polyfills and modified version of the sass.dart.js file, in which all operations on the file system are replaced with functionality from a .NET file manager (instance of class that implements the IFileManager interface). A file with the .es6 extension is then translated into ECMAScript 5 by using the Babel.

It took me quite a long time to make all this just workable.

AlexisIndustries commented 3 years ago

Okay, thank you for answers! Im just building small ASP.NET Core Application and I want to implement small Sass Middleware so that I want to use dart sass for this.