@michijs/dev-server 0.8.17 → 0.8.18
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.
|
@@ -2,6 +2,7 @@ import { config } from "../config/config.js";
|
|
|
2
2
|
import { getAllFiles } from "./getAllFiles.js";
|
|
3
3
|
import { build as esbuild } from "esbuild";
|
|
4
4
|
import { getCurrentCommitSha } from "./getCurrentCommitSha.js";
|
|
5
|
+
import { cssPlugin } from "../config/plugins/css.js";
|
|
5
6
|
const commitSha = getCurrentCommitSha();
|
|
6
7
|
export const workerTransformer = async (_serviceWorkerCode, srcPath) => {
|
|
7
8
|
const { outdir, define } = config.esbuildOptions;
|
|
@@ -12,7 +13,7 @@ export const workerTransformer = async (_serviceWorkerCode, srcPath) => {
|
|
|
12
13
|
splitting: false,
|
|
13
14
|
outdir: undefined,
|
|
14
15
|
inject: undefined,
|
|
15
|
-
plugins:
|
|
16
|
+
plugins: [cssPlugin],
|
|
16
17
|
write: false,
|
|
17
18
|
entryPoints: [srcPath],
|
|
18
19
|
legalComments: "inline",
|