Skip to content

Commit c89d59d

Browse files
author
Jannik Zschiesche
committed
Compile every entry into a separate directory, to avoid issues with the clean plugin
1 parent 1b1dbae commit c89d59d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
* (improvement) The code is now always compiled per entry file
3636
* (improvement) Ignore `.css` files when compiling webpack. You need to import them manually in your SCSS.
3737
* (improvement) Build TypeScript for the `esnext` module system, that (amongst other things) allows to use `import()`.
38+
* (bug) Compile every entry into a separate directory, to avoid issues with the clean plugin.
3839

3940

4041
8.1.0

src/Kaba.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -344,10 +344,10 @@ export class Kaba
344344

345345
// output
346346
output: {
347-
path: path.join(this.outputPaths.base, this.outputPaths.js, isModule ? "modern" : "legacy"),
347+
path: path.join(this.outputPaths.base, this.outputPaths.js, entry, isModule ? "modern" : "legacy"),
348348
filename: this.hashFileNames ? '[name].[chunkhash].js' : '[name].js',
349349
// the slash at the end is required of the public path entries
350-
publicPath: path.join(this.publicPath, isModule ? "modern/" : "legacy/"),
350+
publicPath: path.join(this.publicPath, entry, isModule ? "modern/" : "legacy/"),
351351
pathinfo: cliConfig.debug,
352352
},
353353

0 commit comments

Comments
 (0)