-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Description
I'm trying to create a rails api and a separated JS client using webpacker.
When launching my app, the public/packs/manifest.json
contains this :
{
"application.js": "/packs/application-d2ce57fea2210882a7d4.js",
"hello_vue.css": "/packs/hello_vue-9cb5a7334a6577c3422968b9b9970b2f.css",
"hello_vue.js": "/packs/hello_vue-d8d50a7562d6abcbea06.js"
}
And I whant to use it in my public/index.html
file as it :
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="packs/hello_vue.css" />
</head>
<body>
<script type="text/javascript" src="packs/application.js"></script>
<script type="text/javascript" src="packs/hello_vue.js"></script>
</body>
</html>
Is there a way to configure webpacker not to generate file with the random number ? Or a better way to make the index.html
launch the good generated files ? Thanks.
Metadata
Metadata
Assignees
Labels
No labels