@devup-ui/webpack-plugin 0.1.26 → 0.1.28
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 +6 -6
- 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
|
|
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-
|
|
5
|
-
@media (min-width:480px){.
|
|
6
|
-
@media (min-width:768px){.
|
|
1
|
+
:root[data-theme=light]{--menuActive:#EAE8FC;--success:#4CAF50;--background:#FFFFFF;--link:#006BFF;--cardBg:#F8F8F8;--buttonBlue:#266CCD;--third:#918AE9;--buttonBlueHover:#1453AC;--search:#9C50FF;--primary:#6159D4;--joinBg:#CDE2FA;--shadow:#87878740;--footerText:#51575F;--info:#2196F3;--secondary:#85A5F2;--captionBold:#878594;--base:#FFFFFF;--buttonBlueActive:#19498B;--negativeBase:#000000;--footerTitle:#A3A4B4;--footerBg:#E6E7ED;--text:#2F2F2F;--containerBackground:#FFFFFF;--title:#1A1A1A;--caption:#A9A8B4;--menuHover:#F6F4FF;--textReverse:#FFFFFF;--warning:#FF9800;--border:#E0E0E0;--error:#F44336;--codeBg:#3E3B41;}
|
|
2
|
+
:root{--footerTitle:#A3A4B4;--shadow:#62626240;--secondary:#2A4586;--menuHover:#3C404B;--menuActive:#283259;--link:#006BFF;--primary:#737FE4;--buttonBlue:#0867AF;--text:#EDEDED;--footerBg:#2E303C;--warning:#FF9800;--title:#FAFAFA;--buttonBlueActive:#19498B;--captionBold:#878594;--background:#131313;--codeBg:#2E303C;--joinBg:#2F363E;--textReverse:#2F2F2F;--error:#F44336;--containerBackground:#1E1E1E;--cardBg:#28272B;--buttonBlueHover:#1453AC;--border:#333333;--third:#737FE4;--footerText:#FFFFFF;--success:#4CAF50;--info:#2196F3;--search:#6FA4FF;--base:#000000;--negativeBase:#FFFFFF;--caption:#787878;}
|
|
3
|
+
.typo-body{font-family:Pretendard;font-size:14px;font-weight:500;line-height:1.3;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: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-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: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-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:16px;font-weight:500;line-height:1.3;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}
|
|
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-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-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-textL{font-family:Pretendard;font-size:18px;font-weight:500;line-height:1.5;letter-spacing:-0.03em}}.d8{align-items:center}.d6{display:flex}.d36{display:grid}.d7{flex-direction:column}.d135{justify-content:center}.d8{align-items:center}.d177{align-items:end}.d179{align-items:flex-end}.d172{background:#eccafa}.d180{background:var(--background)}.d17{background:var(--base)}.d114{background:var(--border)}.d85{background:var(--buttonBlue)}.d59{background:var(--cardBg)}.d100{background:var(--codeBg)}.d0{background:var(--containerBackground)}.d78{background:var(--footerBg)}.d131{background:var(--menuActive)}.d146{background:var(--menuHover)}.d103{background:var(--primary)}.d13{background:var(--secondary)}.d24{background:var(--text)}.d143{background:transparent}.d89{background-color:var(--joinBg)}.d90{background-image:var(--d91)}.d144{border:none}.d14{border-radius:100%}.d25{border-radius:100px}.d181{border-radius:16px}.d60{border-radius:20px}.d92{border-radius:40px 40px 0px 40px}.d104{border-radius:50%}.d132{border-radius:6px}.d147{border-radius:8px}.d190{border-right:1px solid var(--border, #E0E0E0)}.d167{border-top:1px solid var(--border, #E0E0E0)}.d182{box-shadow:0px 0px 6px 0px rgba(0, 0, 0, 0.18)}.d157{box-shadow:0px 2px 8px 0px var(--shadow, rgba(135, 135, 135, 0.25))}.d15{width:10px;height:10px;}.d186{width:16px;height:16px;}.d18{width:24px;height:24px;}.d57{width:32px;height:32px;}.d105{width:6px;height:6px;}.d175{width:80px;height:80px;}.d128{width:8px;height:8px;}.d82{color:#FFF}.d16{color:var(--base)}.d119{color:var(--caption)}.d63{color:var(--footerText)}.d62{color:var(--footerTitle)}.d107{color:var(--primary)}.d1{color:var(--text)}.d4{color:var(--title)}.d110{cursor:pointer}.d6{display:flex}.d125{display:none}.d54{flex:1}.d7{flex-direction:column}.d21{gap:10px}.d176{gap:12px}.d64{gap:14px}.d35{gap:16px}.d26{gap:20px}.d9{gap:24px}.d39{gap:40px}.d65{gap:4px}.d28{gap:50px}.d102{gap:6px}.d138{gap:8px}.d37{grid-template-columns:1fr}.d134{height:100%}.d115{height:1px}.d136{height:20px}.d140{height:28px}.d93{height:380px}.d2{height:50px}.d173{height:64px}.d68{justify-content:space-between}.d168{left:0px}.d123{margin-left:16px}.d178{margin-top:24px}.d19{mask-image:var(--d20)}.d169{max-height:calc(100vh - 50px)}.d159{max-width:100%}.d31{max-width:1224px}.d40{max-width:1232px}.d77{max-width:1280px}.d56{max-width:1440px}.d29{max-width:800px}.d30{margin-left:auto;margin-right:auto;}.d109{opacity:0.6}.d108{opacity:0.8}.d129{opacity:1}.d145{outline:none}.d183{overflow:hidden}.d97{overflow-x:auto}.d166{overflow-y:auto}.d127{padding:10px}.d27{padding:16px 40px}.d98{padding:20px}.d52{padding:20px 16px}.d101{padding:20px 30px}.d61{padding:24px}.d50{padding:40px 60px}.d112{padding:4px 10px}.d111{padding:4px 10px 4px 30px}.d133{padding:6px 10px}.d148{padding:8px 8px 6px}.d32{padding-bottom:100px}.d41{padding-bottom:16px}.d184{padding-bottom:24px}.d48{padding-top:100px}.d44{padding-top:16px}.d74{padding-top:20px}.d95{padding-top:40px}.d33{padding-top:80px}.d174{position:absolute}.d149{position:fixed}.d185{position:relative}.d150{position:sticky}.d122{padding-left:10px;padding-right:10px;}.d34{padding-left:12px;padding-right:12px;}.d46{padding-left:16px;padding-right:16px;}.d124{padding-left:24px;padding-right:24px;}.d55{padding-left:60px;padding-right:60px;}.d58{padding-left:8px;padding-right:8px;}.d164{padding-top:10px;padding-bottom:10px;}.d79{padding-top:30px;padding-bottom:30px;}.d47{padding-top:40px;padding-bottom:40px;}.d165{padding-top:4px;padding-bottom:4px;}.d113{padding-top:6px;padding-bottom:6px;}.d5{text-align:center}.d120{text-align:right}.d10{text-decoration:none}.d153{top:0px}.d170{top:50px}.d188{transform:rotate(-90deg)}.d187{transform:rotate(0deg)}.d154{transition:all, 0.2s}.d189{transition:transform 0.2s}.d99{width:100%}.d51{width:1014px}.d191{width:10px}.d69{width:164px}.d121{width:200px}.d53{width:220px}.d3{width:52px}.d155{z-index:1}.d171{z-index:100}.d142::placeholder{color:var(--caption)}.d84:hover{background:var(--buttonBlueHover)}.d130:hover{background:var(--menuHover)}.d23:hover{background:var(--title)}.d117:hover{text-decoration:underline}.d116:hover{text-decoration-color:var(--text)}.d83:active{background:var(--buttonBlueActive)}.d22:active{background:var(--negativeBase)}*[role=group]:hover .d12{background:var(--primary)}*[role=group]:hover .d118{color:var(--text)}*[role=group]:hover .d106{opacity:0.8}*[role=group]:active .d11{background:var(--third)}
|
|
5
|
+
@media (min-width:480px){.d73{align-items:flex-end}.d67{flex-direction:row}.d66{gap:0px}.d76{gap:80px}.d141{height:42px}.d42{padding-bottom:40px}.d160{padding-left:20px}.d162{padding-right:20px}.d75{padding-top:0px}.d49{padding-top:150px}.d80{padding-top:60px;padding-bottom:60px;}.d72{text-align:right}.d70{width:204px}}
|
|
6
|
+
@media (min-width:768px){.d86{align-items:flex-end}.d156{border-radius:16px}.d126{display:flex}.d71{display:none}.d139{gap:16px}.d38{grid-template-columns:1fr 1fr}.d137{height:42px}.d158{height:70px}.d94{justify-content:center}.d87{margin-left:auto}.d43{padding-bottom:120px}.d161{padding-left:40px}.d88{padding-right:100px}.d163{padding-right:40px}.d96{padding-top:0px}.d151{padding-top:20px}.d45{padding-top:40px}.d152{padding-left:16px;padding-right:16px;}.d81{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.28",
|
|
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.25"
|
|
31
32
|
},
|
|
32
33
|
"devDependencies": {
|
|
33
34
|
"vite": "^6.0.11",
|