ホームページ > 記事 > ウェブフロントエンド > SASS/SCSS 用の本番環境に対応した JavaScript 実装はありますか?
LESS.js provides an easy way to integrate Less stylesheets into HTML:
<link rel="stylesheet/less" href="main.less" type="text/css"> <script src="less.js" type="text/javascript"></script>
However, while Sass.js exists, it's primarily intended for use with Node.js, employing a different syntax:
const sass = require('sass') sass.render('... string of sass ...') // => '... string of css ...'
Currently, there is no official JavaScript implementation for SASS/SCSS, and while there are ongoing projects, none are considered suitable for production use.
Considerations for JavaScript Compilation:
It's important to note the following considerations:
Therefore, the Sass core team and LESS developers recommend server-side compilation for optimal performance and maintainability.
以上がSASS/SCSS 用の本番環境に対応した JavaScript 実装はありますか?の詳細内容です。詳細については、PHP 中国語 Web サイトの他の関連記事を参照してください。