tailwindcss 0.0.0-oxide-insiders.a7fe2fe → 0.0.0-oxide-insiders.759a8c2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli/build/deps.js +34 -18
- package/lib/cli/build/index.js +45 -12
- package/lib/cli/build/plugin.js +273 -90
- package/lib/cli/build/utils.js +56 -24
- package/lib/cli/build/watching.js +156 -38
- package/lib/cli/help/index.js +61 -16
- package/lib/cli/index.js +121 -62
- package/lib/cli/init/index.js +47 -23
- package/lib/cli-peer-dependencies.js +23 -13
- package/lib/cli.js +5 -1
- package/lib/corePluginList.js +7 -4
- package/lib/corePlugins.js +855 -386
- package/lib/featureFlags.js +43 -18
- package/lib/lib/cacheInvalidation.js +78 -30
- package/lib/lib/collapseAdjacentRules.js +46 -23
- package/lib/lib/collapseDuplicateDeclarations.js +70 -27
- package/lib/lib/content.js +134 -41
- package/lib/lib/defaultExtractor.js +201 -96
- package/lib/lib/detectNesting.js +38 -12
- package/lib/lib/evaluateTailwindFunctions.js +192 -103
- package/lib/lib/expandApplyAtRules.js +488 -181
- package/lib/lib/expandTailwindAtRules.js +240 -70
- package/lib/lib/findAtConfigPath.js +34 -15
- package/lib/lib/generateRules.js +775 -353
- package/lib/lib/getModuleDependencies.js +67 -29
- package/lib/lib/load-config.js +27 -17
- package/lib/lib/normalizeTailwindDirectives.js +73 -27
- package/lib/lib/offsets.js +227 -62
- package/lib/lib/partitionApplyAtRules.js +53 -29
- package/lib/lib/regex.js +50 -28
- package/lib/lib/remap-bitfield.js +86 -9
- package/lib/lib/resolveDefaultsAtRules.js +123 -53
- package/lib/lib/setupContextUtils.js +1117 -584
- package/lib/lib/setupTrackingContext.js +149 -58
- package/lib/lib/sharedState.js +71 -23
- package/lib/lib/substituteScreenAtRules.js +19 -9
- package/lib/oxide/cli/build/deps.js +46 -23
- package/lib/oxide/cli/build/index.js +44 -12
- package/lib/oxide/cli/build/plugin.js +271 -89
- package/lib/oxide/cli/build/utils.js +55 -24
- package/lib/oxide/cli/build/watching.js +153 -36
- package/lib/oxide/cli/help/index.js +60 -16
- package/lib/oxide/cli/index.js +128 -67
- package/lib/oxide/cli/init/index.js +40 -19
- package/lib/oxide/cli.js +3 -2
- package/lib/plugin.js +58 -31
- package/lib/postcss-plugins/nesting/index.js +13 -7
- package/lib/postcss-plugins/nesting/plugin.js +65 -20
- package/lib/processTailwindFeatures.js +41 -10
- package/lib/public/colors.js +25 -16
- package/lib/public/create-plugin.js +11 -6
- package/lib/public/default-config.js +12 -6
- package/lib/public/default-theme.js +12 -6
- package/lib/public/load-config.js +9 -5
- package/lib/public/resolve-config.js +10 -6
- package/lib/util/applyImportantSelector.js +28 -17
- package/lib/util/bigSign.js +9 -6
- package/lib/util/buildMediaQuery.js +19 -10
- package/lib/util/cloneDeep.js +19 -9
- package/lib/util/cloneNodes.js +29 -14
- package/lib/util/color.js +87 -47
- package/lib/util/colorNames.js +752 -0
- package/lib/util/configurePlugins.js +18 -9
- package/lib/util/createPlugin.js +17 -8
- package/lib/util/createUtilityPlugin.js +30 -16
- package/lib/util/dataTypes.js +189 -38
- package/lib/util/defaults.js +21 -9
- package/lib/util/escapeClassName.js +15 -9
- package/lib/util/escapeCommas.js +9 -6
- package/lib/util/flattenColorPalette.js +11 -7
- package/lib/util/formatVariantSelector.js +209 -60
- package/lib/util/getAllConfigs.js +44 -35
- package/lib/util/hashConfig.js +12 -8
- package/lib/util/isKeyframeRule.js +10 -7
- package/lib/util/isPlainObject.js +14 -9
- package/lib/util/isSyntacticallyValidPropertyValue.js +45 -14
- package/lib/util/log.js +20 -9
- package/lib/util/nameClass.js +31 -10
- package/lib/util/negateValue.js +28 -10
- package/lib/util/normalizeConfig.js +242 -63
- package/lib/util/normalizeScreens.js +145 -70
- package/lib/util/parseAnimationValue.js +64 -14
- package/lib/util/parseBoxShadowValue.js +63 -14
- package/lib/util/parseDependency.js +39 -13
- package/lib/util/parseGlob.js +25 -8
- package/lib/util/parseObjectStyles.js +29 -18
- package/lib/util/pluginUtils.js +196 -77
- package/lib/util/prefixSelector.js +31 -12
- package/lib/util/pseudoElements.js +116 -34
- package/lib/util/removeAlphaVariables.js +23 -8
- package/lib/util/resolveConfig.js +224 -105
- package/lib/util/resolveConfigPath.js +45 -15
- package/lib/util/responsive.js +10 -6
- package/lib/util/splitAtTopLevelOnly.js +46 -10
- package/lib/util/tap.js +11 -7
- package/lib/util/toColorValue.js +10 -7
- package/lib/util/toPath.js +28 -8
- package/lib/util/transformThemeValue.js +49 -14
- package/lib/util/validateConfig.js +25 -15
- package/lib/util/validateFormalSyntax.js +14 -6
- package/lib/util/withAlphaVariable.js +54 -30
- package/package.json +18 -22
- package/peers/index.js +57849 -43101
- package/src/lib/expandTailwindAtRules.js +1 -1
- package/src/lib/setupTrackingContext.js +1 -1
- package/src/util/color.js +1 -1
- package/src/util/colorNames.js +150 -0
- package/src/util/pseudoElements.js +4 -4
package/lib/cli/index.js
CHANGED
|
@@ -1,23 +1,30 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value:
|
|
4
|
+
value: true
|
|
5
5
|
});
|
|
6
|
-
const _path =
|
|
7
|
-
|
|
6
|
+
const _path = /*#__PURE__*/ _interop_require_default(require("path"));
|
|
7
|
+
const _arg = /*#__PURE__*/ _interop_require_default(require("arg"));
|
|
8
|
+
const _fs = /*#__PURE__*/ _interop_require_default(require("fs"));
|
|
9
|
+
const _build = require("./build");
|
|
10
|
+
const _help = require("./help");
|
|
11
|
+
const _init = require("./init");
|
|
12
|
+
function _interop_require_default(obj) {
|
|
8
13
|
return obj && obj.__esModule ? obj : {
|
|
9
14
|
default: obj
|
|
10
15
|
};
|
|
11
16
|
}
|
|
12
17
|
function oneOf(...options) {
|
|
13
|
-
return Object.assign((value =
|
|
18
|
+
return Object.assign((value = true)=>{
|
|
14
19
|
for (let option of options){
|
|
15
20
|
let parsed = option(value);
|
|
16
|
-
if (parsed === value)
|
|
21
|
+
if (parsed === value) {
|
|
22
|
+
return parsed;
|
|
23
|
+
}
|
|
17
24
|
}
|
|
18
|
-
throw Error("...");
|
|
25
|
+
throw new Error("...");
|
|
19
26
|
}, {
|
|
20
|
-
manualParsing:
|
|
27
|
+
manualParsing: true
|
|
21
28
|
});
|
|
22
29
|
}
|
|
23
30
|
let commands = {
|
|
@@ -26,19 +33,19 @@ let commands = {
|
|
|
26
33
|
args: {
|
|
27
34
|
"--esm": {
|
|
28
35
|
type: Boolean,
|
|
29
|
-
description:
|
|
36
|
+
description: `Initialize configuration file as ESM`
|
|
30
37
|
},
|
|
31
38
|
"--ts": {
|
|
32
39
|
type: Boolean,
|
|
33
|
-
description:
|
|
40
|
+
description: `Initialize configuration file as TypeScript`
|
|
34
41
|
},
|
|
35
42
|
"--postcss": {
|
|
36
43
|
type: Boolean,
|
|
37
|
-
description:
|
|
44
|
+
description: `Initialize a \`postcss.config.js\` file`
|
|
38
45
|
},
|
|
39
46
|
"--full": {
|
|
40
47
|
type: Boolean,
|
|
41
|
-
description:
|
|
48
|
+
description: `Include the default values for all options in the generated configuration file`
|
|
42
49
|
},
|
|
43
50
|
"-f": "--full",
|
|
44
51
|
"-p": "--postcss"
|
|
@@ -69,7 +76,7 @@ let commands = {
|
|
|
69
76
|
},
|
|
70
77
|
"--purge": {
|
|
71
78
|
type: String,
|
|
72
|
-
deprecated:
|
|
79
|
+
deprecated: true
|
|
73
80
|
},
|
|
74
81
|
"--postcss": {
|
|
75
82
|
type: oneOf(String, Boolean),
|
|
@@ -95,77 +102,129 @@ let commands = {
|
|
|
95
102
|
"-p": "--poll"
|
|
96
103
|
}
|
|
97
104
|
}
|
|
98
|
-
}
|
|
105
|
+
};
|
|
106
|
+
let sharedFlags = {
|
|
99
107
|
"--help": {
|
|
100
108
|
type: Boolean,
|
|
101
109
|
description: "Display usage information"
|
|
102
110
|
},
|
|
103
111
|
"-h": "--help"
|
|
104
112
|
};
|
|
105
|
-
process.stdout.isTTY
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
113
|
+
if (process.stdout.isTTY /* Detect redirecting output to a file */ && (process.argv[2] === undefined || process.argv.slice(2).every((flag)=>sharedFlags[flag] !== undefined))) {
|
|
114
|
+
(0, _help.help)({
|
|
115
|
+
usage: [
|
|
116
|
+
"tailwindcss [--input input.css] [--output output.css] [--watch] [options...]",
|
|
117
|
+
"tailwindcss init [--full] [--postcss] [options...]"
|
|
118
|
+
],
|
|
119
|
+
commands: Object.keys(commands).filter((command)=>command !== "build").map((command)=>`${command} [options]`),
|
|
120
|
+
options: {
|
|
121
|
+
...commands.build.args,
|
|
122
|
+
...sharedFlags
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
process.exit(0);
|
|
126
|
+
}
|
|
127
|
+
let command = ((arg = "")=>arg.startsWith("-") ? undefined : arg)(process.argv[2]) || "build";
|
|
128
|
+
if (commands[command] === undefined) {
|
|
129
|
+
if (_fs.default.existsSync(_path.default.resolve(command))) {
|
|
130
|
+
// TODO: Deprecate this in future versions
|
|
131
|
+
// Check if non-existing command, might be a file.
|
|
132
|
+
command = "build";
|
|
133
|
+
} else {
|
|
134
|
+
(0, _help.help)({
|
|
135
|
+
message: `Invalid command: ${command}`,
|
|
136
|
+
usage: [
|
|
137
|
+
"tailwindcss <command> [options]"
|
|
138
|
+
],
|
|
139
|
+
commands: Object.keys(commands).filter((command)=>command !== "build").map((command)=>`${command} [options]`),
|
|
140
|
+
options: sharedFlags
|
|
141
|
+
});
|
|
142
|
+
process.exit(1);
|
|
114
143
|
}
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
usage: [
|
|
120
|
-
"tailwindcss <command> [options]"
|
|
121
|
-
],
|
|
122
|
-
commands: Object.keys(commands).filter((command)=>"build" !== command).map((command)=>`${command} [options]`),
|
|
123
|
-
options: sharedFlags
|
|
124
|
-
}), process.exit(1)));
|
|
125
|
-
let { args: flags , run } = commands[command], args = (()=>{
|
|
144
|
+
}
|
|
145
|
+
// Execute command
|
|
146
|
+
let { args: flags , run } = commands[command];
|
|
147
|
+
let args = (()=>{
|
|
126
148
|
try {
|
|
127
149
|
let result = (0, _arg.default)(Object.fromEntries(Object.entries({
|
|
128
150
|
...flags,
|
|
129
151
|
...sharedFlags
|
|
130
152
|
}).filter(([_key, value])=>{
|
|
131
153
|
var _value_type;
|
|
132
|
-
return !(null
|
|
154
|
+
return !(value === null || value === void 0 ? void 0 : (_value_type = value.type) === null || _value_type === void 0 ? void 0 : _value_type.manualParsing);
|
|
133
155
|
}).map(([key, value])=>[
|
|
134
156
|
key,
|
|
135
|
-
"object"
|
|
157
|
+
typeof value === "object" ? value.type : value
|
|
136
158
|
])), {
|
|
137
|
-
permissive:
|
|
159
|
+
permissive: true
|
|
138
160
|
});
|
|
139
|
-
|
|
140
|
-
|
|
161
|
+
// Manual parsing of flags to allow for special flags like oneOf(Boolean, String)
|
|
162
|
+
for(let i = result["_"].length - 1; i >= 0; --i){
|
|
163
|
+
let flag = result["_"][i];
|
|
141
164
|
if (!flag.startsWith("-")) continue;
|
|
142
|
-
let [flagName, flagValue] = flag.split("=")
|
|
143
|
-
|
|
165
|
+
let [flagName, flagValue] = flag.split("=");
|
|
166
|
+
let handler = flags[flagName];
|
|
167
|
+
// Resolve flagName & handler
|
|
168
|
+
while(typeof handler === "string"){
|
|
169
|
+
flagName = handler;
|
|
170
|
+
handler = flags[handler];
|
|
171
|
+
}
|
|
144
172
|
if (!handler) continue;
|
|
145
|
-
let args = []
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
173
|
+
let args = [];
|
|
174
|
+
let offset = i + 1;
|
|
175
|
+
// --flag value syntax was used so we need to pull `value` from `args`
|
|
176
|
+
if (flagValue === undefined) {
|
|
177
|
+
// Parse args for current flag
|
|
178
|
+
while(result["_"][offset] && !result["_"][offset].startsWith("-")){
|
|
179
|
+
args.push(result["_"][offset++]);
|
|
180
|
+
}
|
|
181
|
+
// Cleanup manually parsed flags + args
|
|
182
|
+
result["_"].splice(i, 1 + args.length);
|
|
183
|
+
// No args were provided, use default value defined in handler
|
|
184
|
+
// One arg was provided, use that directly
|
|
185
|
+
// Multiple args were provided so pass them all in an array
|
|
186
|
+
flagValue = args.length === 0 ? undefined : args.length === 1 ? args[0] : args;
|
|
187
|
+
} else {
|
|
188
|
+
// Remove the whole flag from the args array
|
|
189
|
+
result["_"].splice(i, 1);
|
|
190
|
+
}
|
|
191
|
+
// Set the resolved value in the `result` object
|
|
150
192
|
result[flagName] = handler.type(flagValue, flagName);
|
|
151
193
|
}
|
|
152
|
-
|
|
194
|
+
// Ensure that the `command` is always the first argument in the `args`.
|
|
195
|
+
// This is important so that we don't have to check if a default command
|
|
196
|
+
// (build) was used or not from within each plugin.
|
|
197
|
+
//
|
|
198
|
+
// E.g.: tailwindcss input.css -> _: ['build', 'input.css']
|
|
199
|
+
// E.g.: tailwindcss build input.css -> _: ['build', 'input.css']
|
|
200
|
+
if (result["_"][0] !== command) {
|
|
201
|
+
result["_"].unshift(command);
|
|
202
|
+
}
|
|
203
|
+
return result;
|
|
153
204
|
} catch (err) {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
205
|
+
if (err.code === "ARG_UNKNOWN_OPTION") {
|
|
206
|
+
(0, _help.help)({
|
|
207
|
+
message: err.message,
|
|
208
|
+
usage: [
|
|
209
|
+
"tailwindcss <command> [options]"
|
|
210
|
+
],
|
|
211
|
+
options: sharedFlags
|
|
212
|
+
});
|
|
213
|
+
process.exit(1);
|
|
214
|
+
}
|
|
215
|
+
throw err;
|
|
161
216
|
}
|
|
162
217
|
})();
|
|
163
|
-
args["--help"]
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
218
|
+
if (args["--help"]) {
|
|
219
|
+
(0, _help.help)({
|
|
220
|
+
options: {
|
|
221
|
+
...flags,
|
|
222
|
+
...sharedFlags
|
|
223
|
+
},
|
|
224
|
+
usage: [
|
|
225
|
+
`tailwindcss ${command} [options]`
|
|
226
|
+
]
|
|
227
|
+
});
|
|
228
|
+
process.exit(0);
|
|
229
|
+
}
|
|
230
|
+
run(args);
|
package/lib/cli/init/index.js
CHANGED
|
@@ -1,39 +1,63 @@
|
|
|
1
|
+
// @ts-check
|
|
1
2
|
"use strict";
|
|
2
3
|
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value:
|
|
4
|
-
}), Object.defineProperty(exports, "init", {
|
|
5
|
-
enumerable: !0,
|
|
6
|
-
get: ()=>init
|
|
4
|
+
value: true
|
|
7
5
|
});
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
Object.defineProperty(exports, "init", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function() {
|
|
9
|
+
return init;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
const _fs = /*#__PURE__*/ _interop_require_default(require("fs"));
|
|
13
|
+
const _path = /*#__PURE__*/ _interop_require_default(require("path"));
|
|
14
|
+
function _interop_require_default(obj) {
|
|
10
15
|
return obj && obj.__esModule ? obj : {
|
|
11
16
|
default: obj
|
|
12
17
|
};
|
|
13
18
|
}
|
|
19
|
+
function isESM() {
|
|
20
|
+
const pkgPath = _path.default.resolve("./package.json");
|
|
21
|
+
try {
|
|
22
|
+
let pkg = JSON.parse(_fs.default.readFileSync(pkgPath, "utf8"));
|
|
23
|
+
return pkg.type && pkg.type === "module";
|
|
24
|
+
} catch (err) {
|
|
25
|
+
return false;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
14
28
|
function init(args) {
|
|
29
|
+
let messages = [];
|
|
30
|
+
let isProjectESM = args["--ts"] || args["--esm"] || isESM();
|
|
31
|
+
let syntax = args["--ts"] ? "ts" : isProjectESM ? "js" : "cjs";
|
|
32
|
+
let extension = args["--ts"] ? "ts" : "js";
|
|
15
33
|
var _args___;
|
|
16
|
-
let
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
stubContentsFile = stubContentsFile.replace("../colors", "tailwindcss/colors"), stubFile = stubFile.replace("__CONFIG__", stubContentsFile.replace("module.exports =", "").trim()).trim() + "\n\n", _fs.default.writeFileSync(tailwindConfigLocation, stubFile, "utf8"), messages.push(`Created Tailwind CSS config file: ${_path.default.basename(tailwindConfigLocation)}`);
|
|
34
|
+
let tailwindConfigLocation = _path.default.resolve((_args___ = args["_"][1]) !== null && _args___ !== void 0 ? _args___ : `./tailwind.config.${extension}`);
|
|
35
|
+
if (_fs.default.existsSync(tailwindConfigLocation)) {
|
|
36
|
+
messages.push(`${_path.default.basename(tailwindConfigLocation)} already exists.`);
|
|
37
|
+
} else {
|
|
38
|
+
let stubContentsFile = _fs.default.readFileSync(args["--full"] ? _path.default.resolve(__dirname, "../../../stubs/config.full.js") : _path.default.resolve(__dirname, "../../../stubs/config.simple.js"), "utf8");
|
|
39
|
+
let stubFile = _fs.default.readFileSync(_path.default.resolve(__dirname, `../../../stubs/tailwind.config.${syntax}`), "utf8");
|
|
40
|
+
// Change colors import
|
|
41
|
+
stubContentsFile = stubContentsFile.replace("../colors", "tailwindcss/colors");
|
|
42
|
+
// Replace contents of {ts,js,cjs} file with the stub {simple,full}.
|
|
43
|
+
stubFile = stubFile.replace("__CONFIG__", stubContentsFile.replace("module.exports =", "").trim()).trim() + "\n\n";
|
|
44
|
+
_fs.default.writeFileSync(tailwindConfigLocation, stubFile, "utf8");
|
|
45
|
+
messages.push(`Created Tailwind CSS config file: ${_path.default.basename(tailwindConfigLocation)}`);
|
|
29
46
|
}
|
|
30
47
|
if (args["--postcss"]) {
|
|
31
48
|
let postcssConfigLocation = _path.default.resolve("./postcss.config.js");
|
|
32
|
-
if (_fs.default.existsSync(postcssConfigLocation))
|
|
33
|
-
|
|
49
|
+
if (_fs.default.existsSync(postcssConfigLocation)) {
|
|
50
|
+
messages.push(`${_path.default.basename(postcssConfigLocation)} already exists.`);
|
|
51
|
+
} else {
|
|
34
52
|
let stubFile = _fs.default.readFileSync(isProjectESM ? _path.default.resolve(__dirname, "../../../stubs/postcss.config.js") : _path.default.resolve(__dirname, "../../../stubs/postcss.config.cjs"), "utf8");
|
|
35
|
-
_fs.default.writeFileSync(postcssConfigLocation, stubFile, "utf8")
|
|
53
|
+
_fs.default.writeFileSync(postcssConfigLocation, stubFile, "utf8");
|
|
54
|
+
messages.push(`Created PostCSS config file: ${_path.default.basename(postcssConfigLocation)}`);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
if (messages.length > 0) {
|
|
58
|
+
console.log();
|
|
59
|
+
for (let message of messages){
|
|
60
|
+
console.log(message);
|
|
36
61
|
}
|
|
37
62
|
}
|
|
38
|
-
if (messages.length > 0) for (let message of (console.log(), messages))console.log(message);
|
|
39
63
|
}
|
|
@@ -1,4 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: all[name]
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
lazyPostcss: function() {
|
|
13
|
+
return lazyPostcss;
|
|
14
|
+
},
|
|
15
|
+
lazyPostcssImport: function() {
|
|
16
|
+
return lazyPostcssImport;
|
|
17
|
+
},
|
|
18
|
+
lazyAutoprefixer: function() {
|
|
19
|
+
return lazyAutoprefixer;
|
|
20
|
+
},
|
|
21
|
+
lazyCssnano: function() {
|
|
22
|
+
return lazyCssnano;
|
|
23
|
+
}
|
|
24
|
+
});
|
|
2
25
|
function lazyPostcss() {
|
|
3
26
|
return require("postcss");
|
|
4
27
|
}
|
|
@@ -11,16 +34,3 @@ function lazyAutoprefixer() {
|
|
|
11
34
|
function lazyCssnano() {
|
|
12
35
|
return require("cssnano");
|
|
13
36
|
}
|
|
14
|
-
Object.defineProperty(exports, "__esModule", {
|
|
15
|
-
value: !0
|
|
16
|
-
}), function(target, all) {
|
|
17
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
18
|
-
enumerable: !0,
|
|
19
|
-
get: all[name]
|
|
20
|
-
});
|
|
21
|
-
}(exports, {
|
|
22
|
-
lazyPostcss: ()=>lazyPostcss,
|
|
23
|
-
lazyPostcssImport: ()=>lazyPostcssImport,
|
|
24
|
-
lazyAutoprefixer: ()=>lazyAutoprefixer,
|
|
25
|
-
lazyCssnano: ()=>lazyCssnano
|
|
26
|
-
});
|
package/lib/cli.js
CHANGED
package/lib/corePluginList.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value:
|
|
4
|
-
})
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return _default;
|
|
9
|
+
}
|
|
7
10
|
});
|
|
8
11
|
const _default = [
|
|
9
12
|
"preflight",
|