No puede seleccionar más de 25 temas
Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
Este repositorio está archivado. Puede ver los archivos y clonarlo, pero no puede subir cambios o reportar incidencias ni pedir Pull Requests.
|
123456789101112131415161718192021222324252627282930313233 |
- // ------------------------------------
- // #POSTCSS - LOAD OPTIONS - OPTIONS
- // ------------------------------------
-
- 'use strict'
-
- /**
- *
- * @method options
- *
- * @param {Object} options PostCSS Config
- *
- * @return {Object} options PostCSS Options
- */
- module.exports = function options (options) {
- if (options.parser && typeof options.parser === 'string') {
- options.parser = require(options.parser)
- }
-
- if (options.syntax && typeof options.syntax === 'string') {
- options.syntax = require(options.syntax)
- }
-
- if (options.stringifier && typeof options.stringifier === 'string') {
- options.stringifier = require(options.stringifier)
- }
-
- if (options.plugins) {
- delete options.plugins
- }
-
- return options
- }
|