![]() Notes: Make sure that for the unminified version you change the output file name to library.js and for the minified so they do not overwrite each other. To build it minified run: NODEENVproduction webpack. Minification (also minimisation or minimization) is the process of removing all unnecessary characters from the source code of interpreted programming. : const path = require('path') Ĭonst MinifyPlugin = require("babel-minify-webpack-plugin") Ĭonsole.log('Unknown env ' + env + '. And then to build it unminified run (while in the project's main directory): webpack. ![]()
0 Comments
Leave a Reply. |