@unocss/webpack 0.13.0 → 0.13.1
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/dist/index.d.ts +1 -13
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,19 +1,7 @@
|
|
|
1
1
|
import * as webpack from 'webpack';
|
|
2
2
|
import { UserConfig, UserConfigDefaults } from '@unocss/core';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
interface PluginConfig<Theme extends {} = {}> extends UserConfig<Theme> {
|
|
6
|
-
/**
|
|
7
|
-
* Patterns that filter the files being extracted.
|
|
8
|
-
*/
|
|
9
|
-
include?: FilterPattern;
|
|
10
|
-
/**
|
|
11
|
-
* Patterns that filter the files NOT being extracted.
|
|
12
|
-
*/
|
|
13
|
-
exclude?: FilterPattern;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
interface WebpackPluginOptions<Theme extends {} = {}> extends PluginConfig<Theme> {
|
|
4
|
+
interface WebpackPluginOptions<Theme extends {} = {}> extends UserConfig<Theme> {
|
|
17
5
|
}
|
|
18
6
|
declare function defineConfig<Theme extends {}>(config: WebpackPluginOptions<Theme>): WebpackPluginOptions<Theme>;
|
|
19
7
|
declare function WebpackPlugin(configOrPath?: WebpackPluginOptions | string, defaults?: UserConfigDefaults): webpack.WebpackPluginInstance;
|
package/dist/index.js
CHANGED
|
@@ -71,8 +71,8 @@ var INCLUDE_COMMENT = "@unocss-include";
|
|
|
71
71
|
var import_pluginutils = __toModule(require("@rollup/pluginutils"));
|
|
72
72
|
var import_config = __toModule(require("@unocss/config"));
|
|
73
73
|
var import_core = __toModule(require("@unocss/core"));
|
|
74
|
-
function createContext(configOrPath, defaults = {}) {
|
|
75
|
-
const loadConfig = (0, import_config.createConfigLoader)(configOrPath);
|
|
74
|
+
function createContext(configOrPath, defaults = {}, extraConfigSources = []) {
|
|
75
|
+
const loadConfig = (0, import_config.createConfigLoader)(configOrPath, extraConfigSources);
|
|
76
76
|
let rawConfig = {};
|
|
77
77
|
const uno = (0, import_core.createGenerator)(rawConfig, defaults);
|
|
78
78
|
let rollupFilter = (0, import_pluginutils.createFilter)(defaultInclude, defaultExclude);
|
package/dist/index.mjs
CHANGED
|
@@ -43,8 +43,8 @@ var INCLUDE_COMMENT = "@unocss-include";
|
|
|
43
43
|
import { createFilter } from "@rollup/pluginutils";
|
|
44
44
|
import { createConfigLoader } from "@unocss/config";
|
|
45
45
|
import { BetterMap, createGenerator } from "@unocss/core";
|
|
46
|
-
function createContext(configOrPath, defaults = {}) {
|
|
47
|
-
const loadConfig = createConfigLoader(configOrPath);
|
|
46
|
+
function createContext(configOrPath, defaults = {}, extraConfigSources = []) {
|
|
47
|
+
const loadConfig = createConfigLoader(configOrPath, extraConfigSources);
|
|
48
48
|
let rawConfig = {};
|
|
49
49
|
const uno = createGenerator(rawConfig, defaults);
|
|
50
50
|
let rollupFilter = createFilter(defaultInclude, defaultExclude);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/webpack",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.1",
|
|
4
4
|
"description": "The Webpack plugin for UnoCSS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"unocss",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@rollup/pluginutils": "^4.1.1",
|
|
37
|
-
"@unocss/config": "0.13.
|
|
38
|
-
"@unocss/core": "0.13.
|
|
37
|
+
"@unocss/config": "0.13.1",
|
|
38
|
+
"@unocss/core": "0.13.1",
|
|
39
39
|
"unplugin": "^0.2.21",
|
|
40
40
|
"webpack-sources": "^3.2.2"
|
|
41
41
|
},
|