/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
dev/tools/grunt/configs/less.js
51 строка
2 KB
Alexandra Zota
ACP2E-4019: CE copyright updates for 2.4.9-beta1
22 окт 2025, 10:44
22 окт 2025, 10:44
264bea2
Код
Авторство
О чём код?
/** * Copyright 2015 Adobe * All Rights Reserved. */ (function () { 'use strict'; var combo = require('./combo'), themes = require('../tools/files-router').get('themes'), _ = require('underscore'), themeOptions = {}, lessOptions = { options: { sourceMap: true, strictImports: false, sourceMapRootpath: '/', sourceMapBasepath: function () { this.sourceMapURL = this.sourceMapFilename.substr(this.sourceMapFilename.lastIndexOf('/') + 1); return 'pub/'; }, dumpLineNumbers: false, // use 'comments' instead false to output line comments for source ieCompat: false }, setup: { files: { '<%= path.css.setup %>/setup.css': '<%= path.less.setup %>/_setup.less' } }, updater: { files: { '<%= path.css.updater %>/updater.css': '<%= path.less.setup %>/_setup.less' } }, documentation: { files: { '<%= path.doc %>/docs.css': '<%= path.doc %>/source/docs.less' } } }; _.each(themes, function (theme, name) { themeOptions[name] = { files: combo.lessFiles(name) }; }); /** * Compiles Less to CSS and generates necessary files if requested. */ module.exports = _.extend(themeOptions, lessOptions); })();