We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Following the minimal example:
new MergeIntoSingleFilePlugin({ files: { "vendor.js": [ 'src/assets/vendors/js/vendor.bundle.base.js' ] } }),
<script src="./vendor.js"></script>
I get this error when I execute npm run dev
npm run dev
Error: Child compilation failed: Module not found: Error: Can't resolve './vendor.js' in '/home/jarvis/Incubator/webpack-starter/src': Error: Can't resolve './vendor.js' in '/home/jarvis/Incubator/webpack-starter/src'
But if I execute npm run build, I can see a new vendor.js file in dist folder and everything works fine!
npm run build
What can I do to have the ./vendor.js at development stage?
Thanks
The text was updated successfully, but these errors were encountered:
@jrichardsz do you by chance call require('./vendor.js') somewhere in our code? if not then what is your entry in webpack config?
require('./vendor.js')
Sorry, something went wrong.
No branches or pull requests
Following the minimal example:
I get this error when I execute
npm run dev
But if I execute
npm run build
, I can see a new vendor.js file in dist folder and everything works fine!What can I do to have the ./vendor.js at development stage?
Thanks
The text was updated successfully, but these errors were encountered: