Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add path parameter html script src can add / #149

Open
fariellany opened this issue Sep 18, 2020 · 0 comments
Open

add path parameter html script src can add / #149

fariellany opened this issue Sep 18, 2020 · 0 comments

Comments

@fariellany
Copy link

new AutoDllPlugin({
inject: true, // 设为 true 就把 DLL bundles 插到 index.html 里
filename: '[name].dll.js',
context: PROJECT_PATH,
path: 'js/dll',
entry: {
reactDll: [
'react',
'react-dom',
]
}
})

//html

<script src=/js/dll/reactDll.dll.js></script>

path error 404

why?
i need this

<script src=js/dll/reactDll.dll.js></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant