-
-
Notifications
You must be signed in to change notification settings - Fork 285
Closed
Description
Why?
In some projects, I use external library (example jquery
) and for the implamentation of this, I use this plugin (just copy files from another directory to other). The plugin supports the use of hash
, but do not know original file path and resulting file path (include hash
and other stuff). There is no manifest file 😭
sunderls, Mr0grog, IAMtheIAM, DavidKk, eugef and 12 more
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
SebastianS90 commentedon Feb 19, 2017
Assuming you name your destination files
[name].[hash:10].[ext]
, try out this plugin:Isn't that something you can work with?
[-]Support manifest file[/-][+][Feature] Support manifest file[/+]Levdbas commentedon Nov 2, 2017
The guys from webpack-manifest-plugin have included a hook in their latest RC release which other plugins can use to give before and after filenames and locations. Maybe this can be used to solve the hashing issue in a more convienient way? I am by no means capable of guessing if this can work but its merely a suggestion.
shellscape/webpack-manifest-plugin#76
IAMtheIAM commentedon Dec 5, 2017
Here's a slightly modified regex that works with any length hash as long as it is inbetween two
.
characters, except the string.bundle.
will be ignoredmanifest
support (options.manifest
) #19826 remaining items
chezhe commentedon Aug 28, 2019
@budarin Have you fix the problem —— key and value both hashed?
chezhe commentedon Aug 28, 2019
@evilebottnawi I met same problem with @budarin
webpack config
And got manifest
Any suggestion?
alexander-akait commentedon Aug 28, 2019
What is
ManifestPlugin
plugin? We need implement hook for this and plugins should use this hookchezhe commentedon Aug 29, 2019
Here is
webpack-manifest-plugin
chezhe commentedon Aug 29, 2019
#104 (comment)
This works for me, thanks for your reply.
squirrel532 commentedon Sep 12, 2019
I have another hack of making
copy-webpack-plugin
&webpack-assets-manifest
works together.The key point is to use
transformPath
for exposing mapping information to outside world. Then you can write this information to anywhere you want.alexander-akait commentedon Oct 16, 2020
Close in favor #538