@devup-ui/webpack-plugin 0.1.26 → 0.1.27
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/devup-ui.css +5 -5
- package/dist/loader.cjs +1 -1
- package/dist/loader.js +13 -13
- package/dist/plugin.cjs +1 -1
- package/dist/plugin.d.ts +1 -1
- package/dist/plugin.d.ts.map +1 -1
- package/dist/plugin.js +1 -1
- package/package.json +4 -3
package/dist/devup-ui.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
:root{--
|
|
2
|
-
:root
|
|
1
|
+
:root[data-theme=light]{--text:#2F2F2F;--containerBackground:#FFFFFF;--buttonBlueActive:#19498B;--codeBg:#3E3B41;--warning:#FF9800;--menuActive:#EAE8FC;--background:#FFFFFF;--error:#F44336;--link:#006BFF;--buttonBlueHover:#1453AC;--primary:#6159D4;--footerTitle:#A3A4B4;--border:#E0E0E0;--buttonBlue:#266CCD;--caption:#A9A8B4;--textReverse:#FFFFFF;--cardBg:#F8F8F8;--title:#1A1A1A;--joinBg:#CDE2FA;--success:#4CAF50;--search:#9C50FF;--info:#2196F3;--third:#918AE9;--shadow:#87878740;--footerText:#51575F;--captionBold:#878594;--secondary:#85A5F2;--menuHover:#F6F4FF;--base:#FFFFFF;--footerBg:#E6E7ED;--negativeBase:#000000;}
|
|
2
|
+
:root{--link:#006BFF;--footerTitle:#A3A4B4;--buttonBlueHover:#1453AC;--background:#131313;--secondary:#2A4586;--search:#6FA4FF;--caption:#787878;--border:#333333;--text:#EDEDED;--info:#2196F3;--buttonBlueActive:#19498B;--error:#F44336;--codeBg:#2E303C;--menuHover:#3C404B;--textReverse:#2F2F2F;--warning:#FF9800;--captionBold:#878594;--base:#000000;--success:#4CAF50;--negativeBase:#FFFFFF;--buttonBlue:#0867AF;--third:#737FE4;--menuActive:#283259;--footerText:#FFFFFF;--containerBackground:#1E1E1E;--joinBg:#2F363E;--footerBg:#2E303C;--primary:#737FE4;--cardBg:#28272B;--title:#FAFAFA;--shadow:#62626240;}
|
|
3
3
|
.typo-body{font-family:Pretendard;font-size:14px;font-weight:500;line-height:1.3;letter-spacing:-0.03em}.typo-buttonL{font-family:Pretendard;font-size:17px;font-weight:800;line-height:1.3;letter-spacing:-0.03em}.typo-buttonLbold{font-family:Pretendard;font-size:17px;font-weight:700;line-height:1.3;letter-spacing:-0.03em}.typo-buttonLsemiB{font-family:Pretendard;font-size:17px;font-weight:600;line-height:1.3;letter-spacing:-0.03em}.typo-buttonM{font-family:Pretendard;font-size:15px;font-weight:600;line-height:1.3;letter-spacing:-0.03em}.typo-buttonS{font-family:Pretendard;font-size:14px;font-weight:800;line-height:1.3;letter-spacing:-0.03em}.typo-buttonSmid{font-family:Pretendard;font-size:14px;font-weight:500;line-height:1.3;letter-spacing:-0.03em}.typo-code{font-family:D2Coding;font-size:13px;font-weight:700;line-height:1.5;letter-spacing:-0.03em}.typo-footerMenu{font-family:Pretendard;font-size:13px;font-weight:500;line-height:1.4;letter-spacing:-0.03em}.typo-h1{font-family:Pretendard;font-size:38px;font-weight:800;line-height:1.3;letter-spacing:-0.03em}.typo-h2{font-family:Pretendard;font-size:36px;font-weight:800;line-height:1.3;letter-spacing:-0.03em}.typo-h3{font-family:Pretendard;font-size:32px;font-weight:700;line-height:1.3;letter-spacing:-0.03em}.typo-h4{font-family:Pretendard;font-size:28px;font-weight:700;line-height:1.3;letter-spacing:-0.03em}.typo-h5{font-family:Pretendard;font-size:24px;font-weight:600;line-height:1.3;letter-spacing:-0.03em}.typo-h6{font-family:Pretendard;font-size:18px;font-weight:600;line-height:1.3;letter-spacing:-0.03em}.typo-h6Reg{font-family:Pretendard;font-size:18px;font-weight:400;line-height:1.3;letter-spacing:-0.03em}.typo-small{font-family:Pretendard;font-size:11px;font-weight:300;line-height:1.3;letter-spacing:-0.03em}.typo-textL{font-family:Pretendard;font-size:16px;font-weight:500;line-height:1.3;letter-spacing:-0.03em}
|
|
4
|
-
@media (min-width:1280px){.typo-body{font-family:Pretendard;font-size:16px;font-weight:500;line-height:1.5;letter-spacing:-0.03em}.typo-bodyReg{font-family:Pretendard;font-size:16px;font-weight:400;line-height:1.5;letter-spacing:-0.03em}.typo-buttonL{font-family:Pretendard;font-size:20px;font-weight:800;line-height:1.3;letter-spacing:-0.03em}.typo-buttonLbold{font-family:Pretendard;font-size:18px;font-weight:700;line-height:1.3;letter-spacing:-0.03em}.typo-buttonLsemiB{font-family:Pretendard;font-size:18px;font-weight:600;line-height:1.3;letter-spacing:-0.03em}.typo-buttonM{font-family:Pretendard;font-size:17px;font-weight:600;line-height:1.3;letter-spacing:-0.03em}.typo-buttonS{font-family:Pretendard;font-size:15px;font-weight:700;line-height:1.3;letter-spacing:-0.03em}.typo-buttonSmid{font-family:Pretendard;font-size:15px;font-weight:500;line-height:1.3;letter-spacing:-0.03em}.typo-caption{font-family:Pretendard;font-size:14px;font-weight:500;line-height:1.4;letter-spacing:-0.03em}.typo-captionBold{font-family:Pretendard;font-size:14px;font-weight:700;line-height:1.3;letter-spacing:-0.03em}.typo-code{font-family:D2Coding;font-size:15px;font-weight:700;line-height:1.5;letter-spacing:-0.03em}.typo-footerMenu{font-family:Pretendard;font-size:14px;font-weight:500;line-height:1.4;letter-spacing:-0.03em}.typo-h1{font-family:Pretendard;font-size:52px;font-weight:800;line-height:1.3;letter-spacing:-0.03em}.typo-h2{font-family:Pretendard;font-size:48px;font-weight:800;line-height:1.3;letter-spacing:-0.03em}.typo-h3{font-family:Pretendard;font-size:42px;font-weight:700;line-height:1.3;letter-spacing:-0.03em}.typo-h4{font-family:Pretendard;font-size:36px;font-weight:700;line-height:1.3;letter-spacing:-0.03em}.typo-h5{font-family:Pretendard;font-size:30px;font-weight:600;line-height:1.3;letter-spacing:-0.03em}.typo-h6{font-family:Pretendard;font-size:24px;font-weight:600;line-height:1.3;letter-spacing:-0.03em}.typo-h6Reg{font-family:Pretendard;font-size:24px;font-weight:400;line-height:1.3;letter-spacing:-0.03em}.typo-small{font-family:Pretendard;font-size:12px;font-weight:400;line-height:1.4;letter-spacing:-0.03em}.typo-smallBold{font-family:Pretendard;font-size:12px;font-weight:800;line-height:1.4;letter-spacing:-0.03em}.typo-textL{font-family:Pretendard;font-size:18px;font-weight:500;line-height:1.5;letter-spacing:-0.03em}.typo-textS{font-family:Pretendard;font-size:15px;font-weight:500;line-height:1.4;letter-spacing:-0.03em}.typo-textSbold{font-family:Pretendard;font-size:15px;font-weight:700;line-height:1.4;letter-spacing:-0.03em}}.d8{align-items:center}.d6{display:flex}.d36{display:grid}.d7{flex-direction:column}.d123{justify-content:center}.d8{align-items:center}.
|
|
5
|
-
@media (min-width:480px){.d129{height:42px}.d42{padding-bottom:40px}.
|
|
6
|
-
@media (min-width:768px){.
|
|
4
|
+
@media (min-width:1280px){.typo-body{font-family:Pretendard;font-size:16px;font-weight:500;line-height:1.5;letter-spacing:-0.03em}.typo-bodyReg{font-family:Pretendard;font-size:16px;font-weight:400;line-height:1.5;letter-spacing:-0.03em}.typo-buttonL{font-family:Pretendard;font-size:20px;font-weight:800;line-height:1.3;letter-spacing:-0.03em}.typo-buttonLbold{font-family:Pretendard;font-size:18px;font-weight:700;line-height:1.3;letter-spacing:-0.03em}.typo-buttonLsemiB{font-family:Pretendard;font-size:18px;font-weight:600;line-height:1.3;letter-spacing:-0.03em}.typo-buttonM{font-family:Pretendard;font-size:17px;font-weight:600;line-height:1.3;letter-spacing:-0.03em}.typo-buttonS{font-family:Pretendard;font-size:15px;font-weight:700;line-height:1.3;letter-spacing:-0.03em}.typo-buttonSmid{font-family:Pretendard;font-size:15px;font-weight:500;line-height:1.3;letter-spacing:-0.03em}.typo-caption{font-family:Pretendard;font-size:14px;font-weight:500;line-height:1.4;letter-spacing:-0.03em}.typo-captionBold{font-family:Pretendard;font-size:14px;font-weight:700;line-height:1.3;letter-spacing:-0.03em}.typo-code{font-family:D2Coding;font-size:15px;font-weight:700;line-height:1.5;letter-spacing:-0.03em}.typo-footerMenu{font-family:Pretendard;font-size:14px;font-weight:500;line-height:1.4;letter-spacing:-0.03em}.typo-h1{font-family:Pretendard;font-size:52px;font-weight:800;line-height:1.3;letter-spacing:-0.03em}.typo-h2{font-family:Pretendard;font-size:48px;font-weight:800;line-height:1.3;letter-spacing:-0.03em}.typo-h3{font-family:Pretendard;font-size:42px;font-weight:700;line-height:1.3;letter-spacing:-0.03em}.typo-h4{font-family:Pretendard;font-size:36px;font-weight:700;line-height:1.3;letter-spacing:-0.03em}.typo-h5{font-family:Pretendard;font-size:30px;font-weight:600;line-height:1.3;letter-spacing:-0.03em}.typo-h6{font-family:Pretendard;font-size:24px;font-weight:600;line-height:1.3;letter-spacing:-0.03em}.typo-h6Reg{font-family:Pretendard;font-size:24px;font-weight:400;line-height:1.3;letter-spacing:-0.03em}.typo-small{font-family:Pretendard;font-size:12px;font-weight:400;line-height:1.4;letter-spacing:-0.03em}.typo-smallBold{font-family:Pretendard;font-size:12px;font-weight:800;line-height:1.4;letter-spacing:-0.03em}.typo-textL{font-family:Pretendard;font-size:18px;font-weight:500;line-height:1.5;letter-spacing:-0.03em}.typo-textS{font-family:Pretendard;font-size:15px;font-weight:500;line-height:1.4;letter-spacing:-0.03em}.typo-textSbold{font-family:Pretendard;font-size:15px;font-weight:700;line-height:1.4;letter-spacing:-0.03em}}.d8{align-items:center}.d6{display:flex}.d36{display:grid}.d7{flex-direction:column}.d123{justify-content:center}.d8{align-items:center}.d84{align-items:flex-end}.d17{background:var(--base)}.d96{background:var(--buttonBlue)}.d74{background:var(--caption)}.d59{background:var(--cardBg)}.d91{background:var(--codeBg)}.d0{background:var(--containerBackground)}.d85{background:var(--footerBg)}.d119{background:var(--menuActive)}.d134{background:var(--menuHover)}.d63{background:var(--primary)}.d13{background:var(--secondary)}.d24{background:var(--text)}.d131{background:transparent}.d70{background:undefined}.d100{background-color:var(--joinBg)}.d101{background-image:var(--d102)}.d132{border:none}.d14{border-radius:100%}.d25{border-radius:100px}.d60{border-radius:20px}.d103{border-radius:40px 40px 0px 40px}.d120{border-radius:6px}.d135{border-radius:8px}.d163{border-right:1px solid var(--border, #E0E0E0)}.d155{border-top:1px solid var(--border, #E0E0E0)}.d145{box-shadow:0px 2px 8px 0px var(--shadow, rgba(135, 135, 135, 0.25))}.d15{width:10px;height:10px;}.d75{width:16px;height:16px;}.d18{width:24px;height:24px;}.d57{width:32px;height:32px;}.d64{width:6px;height:6px;}.d116{width:8px;height:8px;}.d87{color:#FFF}.d16{color:var(--base)}.d72{color:var(--caption)}.d81{color:var(--footerText)}.d80{color:var(--footerTitle)}.d65{color:var(--primary)}.d1{color:var(--text)}.d4{color:var(--title)}.d113{cursor:pointer}.d6{display:flex}.d111{display:none}.d54{flex:1}.d21{gap:10px}.d82{gap:14px}.d35{gap:16px}.d26{gap:20px}.d9{gap:24px}.d39{gap:40px}.d77{gap:4px}.d28{gap:50px}.d79{gap:6px}.d86{gap:80px}.d126{gap:8px}.d37{grid-template-columns:1fr}.d122{height:100%}.d71{height:1px}.d124{height:20px}.d128{height:28px}.d104{height:380px}.d2{height:50px}.d83{justify-content:space-between}.d156{left:0px}.d109{margin-left:16px}.d19{mask-image:var(--d20)}.d76{mask-size:100%}.d157{max-height:calc(100vh - 50px)}.d147{max-width:100%}.d31{max-width:1224px}.d40{max-width:1232px}.d56{max-width:1440px}.d29{max-width:800px}.d30{margin-left:auto;margin-right:auto;}.d68{opacity:0.6}.d66{opacity:0.8}.d117{opacity:1}.d133{outline:none}.d88{overflow-x:auto}.d154{overflow-y:auto}.d115{padding:10px}.d27{padding:16px 40px}.d89{padding:20px}.d52{padding:20px 16px}.d92{padding:20px 30px}.d61{padding:24px}.d50{padding:40px 60px}.d67{padding:4px 10px}.d69{padding:4px 10px 30px}.d62{padding:6px 0px}.d121{padding:6px 10px}.d136{padding:8px 8px 6px}.d32{padding-bottom:100px}.d41{padding-bottom:16px}.d48{padding-top:100px}.d44{padding-top:16px}.d106{padding-top:40px}.d33{padding-top:80px}.d137{position:fixed}.d138{position:sticky}.d108{padding-left:10px;padding-right:10px;}.d34{padding-left:12px;padding-right:12px;}.d46{padding-left:16px;padding-right:16px;}.d110{padding-left:24px;padding-right:24px;}.d55{padding-left:60px;padding-right:60px;}.d58{padding-left:8px;padding-right:8px;}.d152{padding-top:10px;padding-bottom:10px;}.d47{padding-top:40px;padding-bottom:40px;}.d153{padding-top:4px;padding-bottom:4px;}.d5{text-align:center}.d73{text-align:right}.d10{text-decoration:none}.d141{top:0px}.d158{top:50px}.d161{transform:rotate(-90deg)}.d160{transform:rotate(0deg)}.d142{transition:all, 0.2s}.d162{transition:transform 0.2s}.d90{width:100%}.d51{width:1014px}.d164{width:10px}.d78{width:200px}.d53{width:220px}.d3{width:52px}.d143{z-index:1}.d159{z-index:100}.d130::placeholder{color:var(--caption)}.d95:hover{background:var(--buttonBlueHover)}.d118:hover{background:var(--menuHover)}.d23:hover{background:var(--title)}.d94:active{background:var(--buttonBlueActive)}.d22:active{background:var(--negativeBase)}*[role=group]:hover .d12{background:var(--primary)}*[role=group]:active .d11{background:var(--third)}
|
|
5
|
+
@media (min-width:480px){.d129{height:42px}.d42{padding-bottom:40px}.d148{padding-left:20px}.d150{padding-right:20px}.d49{padding-top:150px}}
|
|
6
|
+
@media (min-width:768px){.d97{align-items:flex-end}.d144{border-radius:16px}.d112{display:flex}.d114{display:none}.d127{gap:16px}.d38{grid-template-columns:1fr 1fr}.d125{height:42px}.d146{height:70px}.d105{justify-content:center}.d98{margin-left:auto}.d43{padding-bottom:120px}.d149{padding-left:40px}.d99{padding-right:100px}.d151{padding-right:40px}.d107{padding-top:0px}.d139{padding-top:20px}.d45{padding-top:40px}.d140{padding-left:16px;padding-right:16px;}.d93{text-align:left}}
|
package/dist/loader.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("node:fs"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("node:fs"),d=require("@devup-ui/wasm"),l=function(c){const{plugin:o}=this.getOptions(),{package:r,cssFile:t}=o.options,s=this.async(),e=this.resourcePath;if(e.includes("node_modules/")||e.includes("@devup-ui/react")||!/\.[tj](s|sx)?$/.test(e)){s(null,c);return}this.addDependency(t);try{const{code:n,css:i}=d.codeExtract(e,c.toString(),r,t);i&&u.writeFileSync(t,i,{encoding:"utf-8"}),s(null,n)}catch(n){s(n)}};exports.default=l;
|
package/dist/loader.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { writeFileSync as a } from "node:fs";
|
|
2
2
|
import { codeExtract as d } from "@devup-ui/wasm";
|
|
3
|
-
const p = function(
|
|
4
|
-
const { plugin: i } = this.getOptions(), { package: r, cssFile:
|
|
5
|
-
if (
|
|
6
|
-
|
|
3
|
+
const p = function(s) {
|
|
4
|
+
const { plugin: i } = this.getOptions(), { package: r, cssFile: e } = i.options, c = this.async(), t = this.resourcePath;
|
|
5
|
+
if (t.includes("node_modules/") || t.includes("@devup-ui/react") || !/\.[tj](s|sx)?$/.test(t)) {
|
|
6
|
+
c(null, s);
|
|
7
7
|
return;
|
|
8
8
|
}
|
|
9
|
-
this.addDependency(
|
|
9
|
+
this.addDependency(e);
|
|
10
10
|
try {
|
|
11
|
-
const { code:
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
const { code: n, css: o } = d(
|
|
12
|
+
t,
|
|
13
|
+
s.toString(),
|
|
14
14
|
r,
|
|
15
|
-
|
|
15
|
+
e
|
|
16
16
|
);
|
|
17
|
-
o && a(
|
|
17
|
+
o && a(e, o, {
|
|
18
18
|
encoding: "utf-8"
|
|
19
|
-
}),
|
|
20
|
-
} catch (
|
|
21
|
-
|
|
19
|
+
}), c(null, n);
|
|
20
|
+
} catch (n) {
|
|
21
|
+
c(n);
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
export {
|
package/dist/plugin.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var m=Object.defineProperty;var g=(o,e,t)=>e in o?m(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var d=(o,e,t)=>g(o,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("node:fs"),l=require("node:module"),u=require("node:path"),v=require("node:url"),a=require("@devup-ui/wasm");var s=typeof document<"u"?document.currentScript:null;const y=v.fileURLToPath(typeof document>"u"?require("url").pathToFileURL(__filename).href:s&&s.tagName.toUpperCase()==="SCRIPT"&&s.src||new URL("plugin.cjs",document.baseURI).href),P=u.dirname(y);class U{constructor({package:e="@devup-ui/react",cssFile:t=u.join(P,"devup-ui.css"),devupPath:r="devup.json",interfacePath:n=".df"}){d(this,"options");this.options={package:e,cssFile:t,devupPath:r,interfacePath:n}}writeDataFiles(){var t;a.registerTheme((t=JSON.parse(i.readFileSync(this.options.devupPath,"utf-8")))==null?void 0:t.theme);const e=a.getThemeInterface(this.options.package,"DevupThemeColors","DevupThemeTypography","DevupTheme");e&&(i.existsSync(this.options.interfacePath)||i.mkdirSync(this.options.interfacePath),i.writeFileSync(u.join(this.options.interfacePath,"theme.d.ts"),e,{encoding:"utf-8"})),i.writeFileSync(this.options.cssFile,a.getCss(),{encoding:"utf-8"})}apply(e){const t=i.existsSync(this.options.devupPath);if(t){try{this.writeDataFiles()}catch(n){console.error(n)}e.hooks.afterCompile.tap("DevupUIWebpackPlugin",n=>{n.fileDependencies.add(u.resolve(this.options.devupPath))})}let r=null;e.hooks.watchRun.tapAsync("DevupUIWebpackPlugin",(n,h)=>{t&&i.stat(this.options.devupPath,(p,f)=>{if(p){console.error(`Error checking ${this.options.devupPath}:`,p);return}const c=f.mtimeMs;r&&r!==c&&this.writeDataFiles(),r=c}),h()}),i.existsSync(this.options.cssFile)||i.writeFileSync(this.options.cssFile,"",{encoding:"utf-8"}),e.options.module.rules.push({test:this.options.cssFile,use:[{loader:l.createRequire(typeof document>"u"?require("url").pathToFileURL(__filename).href:s&&s.tagName.toUpperCase()==="SCRIPT"&&s.src||new URL("plugin.cjs",document.baseURI).href).resolve("@devup-ui/webpack-plugin/css-loader")}]}),e.options.module.rules.push({test:/\.(tsx|ts|js|mjs|jsx)$/,exclude:/node_modules/,use:[{loader:l.createRequire(typeof document>"u"?require("url").pathToFileURL(__filename).href:s&&s.tagName.toUpperCase()==="SCRIPT"&&s.src||new URL("plugin.cjs",document.baseURI).href).resolve("@devup-ui/webpack-plugin/loader"),options:{plugin:this}}]})}}exports.DevupUIWebpackPlugin=U;
|
|
1
|
+
"use strict";var m=Object.defineProperty;var g=(o,e,t)=>e in o?m(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var d=(o,e,t)=>g(o,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("node:fs"),l=require("node:module"),u=require("node:path"),v=require("node:url"),a=require("@devup-ui/wasm");var s=typeof document<"u"?document.currentScript:null;const y=v.fileURLToPath(typeof document>"u"?require("url").pathToFileURL(__filename).href:s&&s.tagName.toUpperCase()==="SCRIPT"&&s.src||new URL("plugin.cjs",document.baseURI).href),P=u.dirname(y);class U{constructor({package:e="@devup-ui/react",cssFile:t=u.join(P,"devup-ui.css"),devupPath:r="devup.json",interfacePath:n=".df"}={}){d(this,"options");this.options={package:e,cssFile:t,devupPath:r,interfacePath:n}}writeDataFiles(){var t;a.registerTheme((t=JSON.parse(i.readFileSync(this.options.devupPath,"utf-8")))==null?void 0:t.theme);const e=a.getThemeInterface(this.options.package,"DevupThemeColors","DevupThemeTypography","DevupTheme");e&&(i.existsSync(this.options.interfacePath)||i.mkdirSync(this.options.interfacePath),i.writeFileSync(u.join(this.options.interfacePath,"theme.d.ts"),e,{encoding:"utf-8"})),i.writeFileSync(this.options.cssFile,a.getCss(),{encoding:"utf-8"})}apply(e){const t=i.existsSync(this.options.devupPath);if(t){try{this.writeDataFiles()}catch(n){console.error(n)}e.hooks.afterCompile.tap("DevupUIWebpackPlugin",n=>{n.fileDependencies.add(u.resolve(this.options.devupPath))})}let r=null;e.hooks.watchRun.tapAsync("DevupUIWebpackPlugin",(n,h)=>{t&&i.stat(this.options.devupPath,(p,f)=>{if(p){console.error(`Error checking ${this.options.devupPath}:`,p);return}const c=f.mtimeMs;r&&r!==c&&this.writeDataFiles(),r=c}),h()}),i.existsSync(this.options.cssFile)||i.writeFileSync(this.options.cssFile,"",{encoding:"utf-8"}),e.options.module.rules.push({test:this.options.cssFile,use:[{loader:l.createRequire(typeof document>"u"?require("url").pathToFileURL(__filename).href:s&&s.tagName.toUpperCase()==="SCRIPT"&&s.src||new URL("plugin.cjs",document.baseURI).href).resolve("@devup-ui/webpack-plugin/css-loader")}]}),e.options.module.rules.push({test:/\.(tsx|ts|js|mjs|jsx)$/,exclude:/node_modules/,use:[{loader:l.createRequire(typeof document>"u"?require("url").pathToFileURL(__filename).href:s&&s.tagName.toUpperCase()==="SCRIPT"&&s.src||new URL("plugin.cjs",document.baseURI).href).resolve("@devup-ui/webpack-plugin/loader"),options:{plugin:this}}]})}}exports.DevupUIWebpackPlugin=U;
|
package/dist/plugin.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export interface DevupUIWebpackPluginOptions {
|
|
|
7
7
|
}
|
|
8
8
|
export declare class DevupUIWebpackPlugin {
|
|
9
9
|
options: DevupUIWebpackPluginOptions;
|
|
10
|
-
constructor({ package: libPackage, cssFile, devupPath, interfacePath, }
|
|
10
|
+
constructor({ package: libPackage, cssFile, devupPath, interfacePath, }?: Partial<DevupUIWebpackPluginOptions>);
|
|
11
11
|
writeDataFiles(): void;
|
|
12
12
|
apply(compiler: Compiler): void;
|
|
13
13
|
}
|
package/dist/plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAA;AAKvC,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,EAAE,MAAM,CAAA;CACtB;AAED,qBAAa,oBAAoB;IAC/B,OAAO,EAAE,2BAA2B,CAAA;gBAExB,EACV,OAAO,EAAE,UAA8B,EACvC,OAAwC,EACxC,SAAwB,EACxB,aAAqB,GACtB,
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAA;AAKvC,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,EAAE,MAAM,CAAA;CACtB;AAED,qBAAa,oBAAoB;IAC/B,OAAO,EAAE,2BAA2B,CAAA;gBAExB,EACV,OAAO,EAAE,UAA8B,EACvC,OAAwC,EACxC,SAAwB,EACxB,aAAqB,GACtB,GAAE,OAAO,CAAC,2BAA2B,CAAM;IAS5C,cAAc;IA0Bd,KAAK,CAAC,QAAQ,EAAE,QAAQ;CAgEzB"}
|
package/dist/plugin.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devup-ui/webpack-plugin",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.27",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -21,13 +21,14 @@
|
|
|
21
21
|
"./css-loader": {
|
|
22
22
|
"import": "./dist/css-loader.js",
|
|
23
23
|
"require": "./dist/css-loader.cjs"
|
|
24
|
-
}
|
|
24
|
+
},
|
|
25
|
+
"./dist/*": "./dist/*"
|
|
25
26
|
},
|
|
26
27
|
"files": [
|
|
27
28
|
"dist"
|
|
28
29
|
],
|
|
29
30
|
"dependencies": {
|
|
30
|
-
"@devup-ui/wasm": "0.1.
|
|
31
|
+
"@devup-ui/wasm": "0.1.24"
|
|
31
32
|
},
|
|
32
33
|
"devDependencies": {
|
|
33
34
|
"vite": "^6.0.11",
|