I have a project that just consists of single HTML page, which includes several JavaScript and CSS files (at the moment via <include>
and <style>
). For development including the individual files is quite nice.
My problem: for bundling a release, I would like to (automatically) bundle all scripts/css into one single HTML-file . The build process (testing, code formatting, JSDoc generation) is implemented with Grunt.
Desired solution: I need a Grunt plugin (or something that can be integrated with Grunt) to "compile" the single HTML-file file.
Just for completeness (link to the project repo): https://github.com/dennisguse/TheKarte
I used grunt-assets-inline
. ( Link )
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.