weboptimizer 2.0.1613 → 2.0.1615
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/index.js +6 -5
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -135,13 +135,14 @@ var main = function main(context) {
|
|
|
135
135
|
NOTE: If we have a dependency cycle we need to preserve files
|
|
136
136
|
during pre-install phase.
|
|
137
137
|
*/
|
|
138
|
-
if (!(possibleArguments.includes(configuration.givenCommandLineArguments[2]) && !['build', 'build:types', 'lint', 'preinstall', 'test', 'test:browser', 'test:coverage', 'test:coverage:report'].includes(configuration.givenCommandLineArguments[2]) ||
|
|
138
|
+
if (!(possibleArguments.includes(configuration.givenCommandLineArguments[2]) && (!['build', 'build:types', 'lint', 'preinstall', 'test', 'test:browser', 'test:coverage', 'test:coverage:report', 'serve', 'watch'].includes(configuration.givenCommandLineArguments[2]) ||
|
|
139
139
|
/*
|
|
140
|
-
NOTE: If target artefacts are located next to their
|
|
141
|
-
files, we need to clear them first when running
|
|
142
|
-
(watching source files and reloading build
|
|
140
|
+
NOTE: If target artefacts are located next to their
|
|
141
|
+
source files, we need to clear them first when running
|
|
142
|
+
dev mode (watching source files and reloading build
|
|
143
|
+
automatically).
|
|
143
144
|
*/
|
|
144
|
-
['serve', 'watch'].includes(configuration.givenCommandLineArguments[2]) && configuration.path.source.base === configuration.path.target.base)) {
|
|
145
|
+
['serve', 'watch'].includes(configuration.givenCommandLineArguments[2]) && configuration.path.source.base === configuration.path.target.base))) {
|
|
145
146
|
_context3.next = 20;
|
|
146
147
|
break;
|
|
147
148
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weboptimizer",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1615",
|
|
4
4
|
"description": "A generic web optimizer, (module) bundler and development environment.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -1544,8 +1544,8 @@
|
|
|
1544
1544
|
{
|
|
1545
1545
|
"__evaluate__": "path.resolve(self.path.target.base, '*.js')"
|
|
1546
1546
|
},
|
|
1547
|
-
"# NOTE: We need to ignore build js files but not the whole \"node_modules\" folder potentially. That means that we can only completly ignore files in target if it is not the same as the root folder",
|
|
1548
1547
|
{
|
|
1548
|
+
"#": "NOTE: We need to ignore build js files but not the whole \"node_modules\" folder potentially. That means that we can only completly ignore files in target if it is not the same as the root folder",
|
|
1549
1549
|
"__evaluate__": "filesystem.isDirectorySync(path.resolve(self.path.target.base, 'node_modules')) ? path.resolve(self.path.target.base, '*/*.js') : path.resolve(self.path.target.base, '**/*.js')"
|
|
1550
1550
|
}
|
|
1551
1551
|
]
|