single-page application, angular library files referenced by script tags and controller.js and model.js, of each module can be packaged using webpack, non-professional front end.
Thank you.
single-page application, angular library files referenced by script tags and controller.js and model.js, of each module can be packaged using webpack, non-professional front end.
Thank you.
No. Webpack is used for modular programming, and it is packaged according to dependencies.
webpack allows you to have a modular development experience, generally speaking, there is no need for you to manually introduce script files into the script element (the introduction of script files is actually more similar to the result of packaging, of course, all the code will be processed to a certain extent during the packaging process), but if you must introduce a script for global use, it is not impossible to write it in the based html.
new HtmlWebpackPlugin({template: './src/index.html'})
require the fs module in the front-end project, but keep reporting errors? fs.readFileSync is not a function introduce code var fs = require( fs ); fs.readFileSync( index.html , utf8 ); this is the webpack configuration file const path = re...