-
-
Notifications
You must be signed in to change notification settings - Fork 597
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
68 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
'use strict'; | ||
|
||
const { run, isWebpack5 } = require('../utils/test-utils'); | ||
|
||
describe('cache related tests', () => { | ||
it('should log warning in case of single compiler', () => { | ||
let { stderr, stdout } = run(__dirname, ['-c', 'webpack.config.js'], false); | ||
// run 2nd compilation | ||
({ stderr, stdout } = run(__dirname, ['-c', 'webpack.config.js'], false)); | ||
|
||
if (isWebpack5) { | ||
expect(stderr).toContain('starting to restore cache content'); | ||
expect(stdout).toContain('[cached] 1 module'); | ||
} | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
console.log('tehghgst cache'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
const path = require('path'); | ||
|
||
module.exports = { | ||
cache: { | ||
type: 'filesystem', | ||
buildDependencies: { | ||
config: [__filename], | ||
}, | ||
}, | ||
infrastructureLogging: { | ||
debug: /webpack\.cache/, | ||
}, | ||
entry: { | ||
app: './src/main.js', | ||
}, | ||
devtool: 'inline-source-map', | ||
plugins: [], | ||
output: { | ||
filename: '[name].bundle.js', | ||
chunkFilename: '[name].bundle.js', | ||
path: path.resolve(__dirname, 'dist'), | ||
publicPath: '/', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters