weboptimizer 2.0.1266 → 2.0.1268
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/configurator.js +3 -4
- package/declarations.d.ts +2 -0
- package/package.json +1 -1
- package/tsconfig.json +1 -1
package/configurator.js
CHANGED
|
@@ -135,12 +135,11 @@ var load = function load(context) {
|
|
|
135
135
|
givenCommandLineArguments: commandLineArguments
|
|
136
136
|
};
|
|
137
137
|
if (filePath) {
|
|
138
|
-
|
|
138
|
+
var fileContent = (0, _fs.readFileSync)(filePath, {
|
|
139
139
|
encoding: configuration.encoding
|
|
140
|
-
}));
|
|
141
|
-
(0, _fs.unlink)(filePath, function (error) {
|
|
142
|
-
if (error) throw error;
|
|
143
140
|
});
|
|
141
|
+
runtimeInformation = JSON.parse(fileContent);
|
|
142
|
+
(0, _fs.unlinkSync)(filePath);
|
|
144
143
|
}
|
|
145
144
|
//// region task specific configuration
|
|
146
145
|
///// region apply task type specific configuration
|
package/declarations.d.ts
CHANGED
|
@@ -4,12 +4,14 @@
|
|
|
4
4
|
dependency cycle.
|
|
5
5
|
*/
|
|
6
6
|
type Mapping<T = string> = {[key:string]:T}
|
|
7
|
+
|
|
7
8
|
interface PostcssTransformer {
|
|
8
9
|
postcssPlugin: string
|
|
9
10
|
postcssVersion: string
|
|
10
11
|
|
|
11
12
|
(root:object, result:object):Promise<void>|void
|
|
12
13
|
}
|
|
14
|
+
|
|
13
15
|
/** @module declarations */
|
|
14
16
|
declare module 'babel-preset-minify'
|
|
15
17
|
declare module 'html-loader'
|
package/package.json
CHANGED