# grunt-w20

> Produce an optimized build of a w20 application

Latest version **0.1.1** (published 2016-06-06) · 0 weekly downloads

## Install

```sh
npm install grunt-w20
pnpm add grunt-w20
yarn add grunt-w20
bun add grunt-w20
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2016-06-06 |
| First published | 2016-02-26 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.8.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | kavi87 |
| Maintainers | kavi87 |
| Keywords | gruntplugin, w20, optimization, optimize, optimizer, compression, compress, build, packaging, shipping, r.js |

## Links

- npm: https://www.npmjs.com/package/grunt-w20
- Repository: https://github.com/seedstack/grunt-w20
- Issues: https://github.com/seedstack/grunt-w20/issues
- npm.io page: https://npm.io/package/grunt-w20

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2016-06-06
- 0.1.0 — 2016-02-26

## README

# grunt-w20
Grunt plugin providing tasks for W20-based applications.

## Optimization

Optimization (concatenation and minification of js/css files) is done with r.js.

Install the plugin

```
npm install -g grunt-w20
```

Load it in your gruntfile.js 

```
grunt.loadNpmTasks('grunt-w20');
```

Configure the task

```
grunt.initConfig({
    w20: {
        optimize: {}
    }
}
```

The above should be sufficient for a default app structure.

### Options

```
w20: {
    optimize: {
        options: {
           basePath: "the application base path, default to '.'"
           applicationManifest: "name of the application manifest, default to 'w20.app.json')"
           componentsPath: "path to the component folder, default to 'bower_components')"
            buildConfig: {
                // r.js configuration, sensible defaults are applied, override only for specific need
                optimize: 'closure', // if you want to use closure as the optimizer, default to uglify2
                out: 'my/dist/optimized.test.min.js',
                ...
            }
        }
    }
}
```

---
_Source: https://npm.io/package/grunt-w20 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
