954 B
954 B
Stylelint bundle file created by:
-
Installing, or having stylelint installed in any repository (
npm install stylelint
). -
Installing, or having browserify installed globally (
npm install browserify
). -
Bundle the linter by typing this into the terminal:
browserify -r stylelint -o stylelint-bundle.js
. -
Lastly, comment out the following lines around 94413 to 94419:
/* try { ignoreText = fs.readFileSync(absoluteIgnoreFilePath, "utf8"); } catch (readError) { if (readError.code !== FILE_NOT_FOUND_ERROR_CODE) throw readError; } */
This prevents a js error when stylelint attempts to access a local file. The other
fs.readFile
entries are not accessed because we're using stylelint's standalone method. -
The script was then "minified" by manually running it through Google's Closure Compiler set to "Whitespace only".