======== Built-In ======== *JS* and *CSS* files can be optimized further using these settings: #. compile #. bundle[-es6] #. lint #. es5 #. transform #. beautify #. minify #. es5-minify #. minify-svg #. custom name You can define or undefine your own optimizations in ``squared.json``: HTML ==== .. list-table:: :width: 400px :widths: 40 50 10 * - `posthtml `_ - @pi-r/posthtml - 5 * - `prettier `_ - @pi-r/prettier - 6 * - `html-validate `_ - @pi-r/html-validate - 3 * - `html-minifier-terser `_ - @pi-r/html-minifier-terser - 7 * - `html-minifier `_ - @pi-r/html-minifier - 7 * - `svgo `_ - @pi-r/svgo - 9 CSS === .. list-table:: :width: 400px :widths: 40 50 10 * - `postcss `_ - @pi-r/postcss - 5 * - `clean-css `_ - @pi-r/clean-css - 6 * - `csso `_ - @pi-r/csso - 7 * - `stylelint `_ - @pi-r/stylelint - 3 * - `sass `_ - @pi-r/sass - 1 JS == .. list-table:: :width: 400px :widths: 40 50 10 * - `@babel/core `_ - @pi-r/babel - 4 * - `eslint `_ - @pi-r/eslint - 3 * - `prettier `_ - @pi-r/prettier - 6 * - `rollup `_ - @pi-r/rollup - 2 * - `terser `_ - @pi-r/terser - 7 * - `uglify-js `_ - @pi-r/uglify-js - 8 These plugins can be configured using a plain object in ``settings.transform``. Import maps [#]_ are available for plugins which resolve imports through the file system. Other non-builtin transpilers can similarly be integrated by defining a custom function. - NPM custom package - Local file using module.exports :alt:`(e.g. ".cjs")` - Local plain file with single function :alt:`(e.g. ".js")` - Inline function .. tip:: More advanced plugins can be written when installed through NPM. .. [#] settings.transform.imports