how to generate js file without webpackJsonp
问题 I want webpack to process js file (minify/uglify) but not format it as a module - so it would be just raw js file containing only the initial code (minified/uglified) without any webpackJsonp. I need such a file to load it before webpack is loaded in a browser, to detect if custom font is loaded. If I use webpack module to do it then my bundle is loaded after font file is loaded. 回答1: Set your target to node in webpack.config.js (the default is web ) module.exports = { target: 'node' }; In