0.2.13 • Published 3 years ago

@snowpack/plugin-optimize v0.2.13

Weekly downloads
1,633
License
MIT
Repository
github
Last release
3 years ago

@snowpack/plugin-optimize

Optimize your unbundled Snowpack app:

Usage

From a terminal, run the following:

npm install --save-dev @snowpack/plugin-optimize

Then add this plugin to your Snowpack config:

// snowpack.config.json
{
  "plugins": [
    ["@snowpack/plugin-optimize", { /* see options below */ }]
  ]
}

Plugin Options

NameTypeDescription
minifyJSbooleanEnable JS minification (default: true)
minifyCSSbooleanEnable CSS minification (default: true)
minifyHTMLbooleanEnable HTML minification (default: true)
preloadModulesbooleanExperimental: Add deep, optimized <link rel="modulepreload"> tags into your HTML. (default: false)
preloadCSSbooleanExperimental: Eliminate .css.proxy.js files and combine imported CSS into one file for better network performance (default: false)
preloadCSSFileNamestringIf preloading CSS, change the name of the generated CSS file. Used only in conjunction with preloadCSS: true (default: /imported-styles.css)
targetstring,string[]The language target(s) to transpile to. This can be a single string (ex: "es2018") or an array of strings (ex: "chrome58","firefox57"). If undefined, no transpilation will be done. See esbuild documentation for more.
0.2.13

3 years ago

0.2.12

3 years ago

0.2.10

3 years ago

0.2.9

3 years ago

0.2.8

4 years ago

0.2.7

4 years ago

0.3.0-alpha.0

4 years ago

0.2.6

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago