This repository was archived by the owner on Oct 27, 2020. It is now read-only.
This repository was archived by the owner on Oct 27, 2020. It is now read-only.
using with file-loader, files are not builded if in cache, even if dist folder is empty #82
Open
Description
- Operating System: ubuntu 16.04
- Node Version: 6.14.3
- NPM Version: 3.10.10
- webpack Version: 4
- cache-loader Version: 3.0.1
Expected Behavior
file-loader
outputs all to assets folder.
cache-loader
used with file-loader
.
While using with file-loader
, if output directory does not content assets folder — get those files from cache and put in assets folder.
Actual Behavior
Webpack doesn't output assets folder, that shoul be generated by file-loader
.
Code
{
test: /.(jpg|jpeg|png|svg|gif|ttf|otf|eot|woff|woff2)$/,
use: [
{
loader: 'cache-loader'
},
{
loader: 'file-loader',
options: {
outputPath: 'assets',
name: isDevelopment ? '[path][name].[ext]' : '[hash].[ext]'
}
}
]
}
How Do We Reproduce?
Add cache-loader
before file-loader
.
Metadata
Metadata
Assignees
Labels
No labels