@empjs/plugin-stylus 3.1.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/README.md ADDED
@@ -0,0 +1,16 @@
1
+ # @empjs/plugin-stylus
2
+ ## 安装
3
+ ```
4
+ pnpm add @empjs/plugin-stylus -D
5
+ ```
6
+ ## 使用
7
+ ```js
8
+ import pluginStylus from '@empjs/plugin-stylus'
9
+ import {defineConfig} from '@empjs/cli'
10
+ export default defineConfig(({mode, env}) => {
11
+ return {
12
+ plugins: [pluginStylus()],
13
+ }
14
+ })
15
+
16
+ ```
package/dist/index.cjs ADDED
@@ -0,0 +1 @@
1
+ "use strict";var t=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var n=(s,e)=>{for(var r in e)t(s,r,{get:e[r],enumerable:!0})},i=(s,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of a(e))!d.call(s,l)&&l!==r&&t(s,l,{get:()=>e[l],enumerable:!(o=u(e,l))||o.enumerable});return s};var y=s=>i(t({},"__esModule",{value:!0}),s);var c={};n(c,{default:()=>p});module.exports=y(c);var p=()=>({name:"@empjs/plugin-stylus",async rsConfig(s){let{chain:e}=s;e.module.rule("stylus").test(/\.styl$/).use("style-loader").loader("style-loader").end().use("css-loader").loader("css-loader").end().use("stylus-loader").loader("stylus-loader").options({stylusOptions:{includeCSS:!1,resolveURL:!0,lineNumbers:!0,hoistAtrules:!0,compress:!0}})}});
@@ -0,0 +1,8 @@
1
+ import { GlobalStore } from '@empjs/cli';
2
+
3
+ declare const _default: () => {
4
+ name: string;
5
+ rsConfig(store: GlobalStore): Promise<void>;
6
+ };
7
+
8
+ export { _default as default };
@@ -0,0 +1,8 @@
1
+ import { GlobalStore } from '@empjs/cli';
2
+
3
+ declare const _default: () => {
4
+ name: string;
5
+ rsConfig(store: GlobalStore): Promise<void>;
6
+ };
7
+
8
+ export { _default as default };
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ var t=()=>({name:"@empjs/plugin-stylus",async rsConfig(e){let{chain:s}=e;s.module.rule("stylus").test(/\.styl$/).use("style-loader").loader("style-loader").end().use("css-loader").loader("css-loader").end().use("stylus-loader").loader("stylus-loader").options({stylusOptions:{includeCSS:!1,resolveURL:!0,lineNumbers:!0,hoistAtrules:!0,compress:!0}})}});export{t as default};
package/package.json ADDED
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "@empjs/plugin-stylus",
3
+ "version": "3.1.1",
4
+ "description": "emp stylus plugin",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "files": ["dist"],
8
+ "maintainers": ["xuhongbin", "ckken", "doerme"],
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/empjs/emp.git",
12
+ "directory": "packages/plugin-vue2"
13
+ },
14
+ "publishConfig": {
15
+ "access": "public"
16
+ },
17
+ "keywords": ["stylus"],
18
+ "main": "dist/index.js",
19
+ "types": "dist/index.d.ts",
20
+ "exports": {
21
+ ".": {
22
+ "import": {
23
+ "types": "./dist/index.d.ts",
24
+ "default": "./dist/index.js"
25
+ },
26
+ "require": {
27
+ "types": "./dist/index.d.cts",
28
+ "default": "./dist/index.cjs"
29
+ }
30
+ }
31
+ },
32
+ "scripts": {
33
+ "build": "tsup",
34
+ "dev": "tsup --watch"
35
+ },
36
+ "engines": {
37
+ "node": ">=16.0.0"
38
+ },
39
+ "author": "Ken",
40
+ "devDependencies": {
41
+ "@empjs/cli": "workspace:*",
42
+ "tsup": "^8.1.0"
43
+ },
44
+ "dependencies": {
45
+ "css-loader": "^7.1.2",
46
+ "style-loader": "^4.0.0",
47
+ "stylus": "^0.63.0",
48
+ "stylus-loader": "^8.1.1"
49
+ }
50
+ }