![]() That's because you need to have that file in your repo root folder, that's probably fixable with a different CLI because this example is intended to use in a simple web. You've removed all the unnecessary white spaces, comments, newline characters, and everything that initially made the code legible. Once it's been minified, it should be almost unreadable to the naked eye. Src\ $ s udo npx terser -c -m -o - roslibjs.js npx: installed 6 in 4.873sĮRROR: ENOENT: no such file or directory, open 'roslibjs.js'Īt read_file (/root/.npm/_npx/5749/lib/node_modules/terser/dist/:26955:23)Īt /root/.npm/_npx/5749/lib/node_modules/terser/dist/:26766:41Īt run_cli (/root/.npm/_npx/5749/lib/node_modules/terser/dist/:26765:32)Īt process._tickCallback (internal/process/next_tick.js:68:7)Īt (internal/modules/cjs/loader.js:834:11)Īt (/usr/local/lib/node_modules/npm/node_modules/libnpx/index.js:268:14) To minify JavaScript code, you must parse it, compress it, and get the output. You should be including this inside your index.html. ![]() This is the file that would contain your all. eslintrc.) as well as dot-folders and their contents are ignored. if you mean the files that gulp is creating, look under dist/, thats where your files are being minified to bryce. The implicit rules are as follows: nodemodules/ is ignored. eslintignore file, ESLint always follows a couple of implicit ignore rules even if the -no-ignore flag is passed. The minifier will not understand any other provided file type.Sorry to comment with the following bug: (WSL2 Ubuntu 20.04 VS Code) gitignore’s specification for further examples of valid syntax. ![]() Please note that minification is only available for CSS and JavaScript files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |