@deot/dev-builder 2.2.1 → 2.2.2
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/index.cjs.js +2 -1
- package/dist/index.es.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -37,6 +37,7 @@ function _interopNamespaceDefault(e) {
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
const path__namespace = /*#__PURE__*/_interopNamespaceDefault(path);
|
|
40
|
+
const sass__namespace = /*#__PURE__*/_interopNamespaceDefault(sass);
|
|
40
41
|
|
|
41
42
|
const dirname$1 = path__namespace.dirname(node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (document.currentScript && document.currentScript.src || new URL('index.cjs', document.baseURI).href))));
|
|
42
43
|
const run$3 = async (options) => {
|
|
@@ -119,7 +120,7 @@ const run$2 = async (options) => {
|
|
|
119
120
|
(preProcess, file) => {
|
|
120
121
|
preProcess = preProcess.then(() => {
|
|
121
122
|
let filepath = path__namespace.resolve(srcDir, file);
|
|
122
|
-
const data =
|
|
123
|
+
const data = sass__namespace.compile(filepath, { style: "compressed" });
|
|
123
124
|
return postcss().use(atImport()).use(atUrl()).use(flexBugs()).use(cssnano()).use(autoprefixer({ remove: false })).process(data.css, { from: filepath });
|
|
124
125
|
}).then((source) => {
|
|
125
126
|
let output = path__namespace.resolve(packageDir, `./dist/${file.replace(/\.scss$/g, ".css")}`);
|
package/dist/index.es.js
CHANGED
|
@@ -6,7 +6,7 @@ import chalk from 'chalk';
|
|
|
6
6
|
import ora from 'ora';
|
|
7
7
|
import { fileURLToPath } from 'node:url';
|
|
8
8
|
import { build as build$1 } from 'vite';
|
|
9
|
-
import sass from 'sass';
|
|
9
|
+
import * as sass from 'sass';
|
|
10
10
|
import postcss from 'postcss';
|
|
11
11
|
import atImport from 'postcss-import';
|
|
12
12
|
import atUrl from 'postcss-url';
|