You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
779 B
28 lines
779 B
|
2 years ago
|
'use strict';
|
||
|
|
|
||
|
|
Object.defineProperty(exports, '__esModule', { value: true });
|
||
|
|
|
||
|
|
const WebpackPlugin = require('@unocss/webpack');
|
||
|
|
const presetUno = require('@unocss/preset-uno');
|
||
|
|
|
||
|
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
|
||
|
|
|
||
|
|
const WebpackPlugin__default = /*#__PURE__*/_interopDefaultLegacy(WebpackPlugin);
|
||
|
|
const presetUno__default = /*#__PURE__*/_interopDefaultLegacy(presetUno);
|
||
|
|
|
||
|
|
function UnocssWebpackPlugin(configOrPath) {
|
||
|
|
return WebpackPlugin__default(
|
||
|
|
configOrPath,
|
||
|
|
{
|
||
|
|
presets: [
|
||
|
|
presetUno__default()
|
||
|
|
]
|
||
|
|
}
|
||
|
|
);
|
||
|
|
}
|
||
|
|
|
||
|
|
exports["default"] = UnocssWebpackPlugin;
|
||
|
|
for (const k in WebpackPlugin) {
|
||
|
|
if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = WebpackPlugin[k];
|
||
|
|
}
|