# compile-code-loader

> Compiles javascript with webpack and loads result as string

Latest version **1.0.0** (published 2020-10-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install compile-code-loader
pnpm add compile-code-loader
yarn add compile-code-loader
bun add compile-code-loader
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-10-12 |
| First published | 2016-01-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 2.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Andrey Skladchikov @huston007 |
| Maintainers | huston007 |

## Links

- npm: https://www.npmjs.com/package/compile-code-loader
- npm.io page: https://npm.io/package/compile-code-loader

## Dependencies (1)

- [loader-utils](https://npm.io/package/loader-utils.md) ^2.0.0

## Recent versions

- 1.0.0 (latest) — 2020-10-12
- 0.2.0 — 2017-05-19
- 0.1.8 — 2017-05-19
- 0.1.7 — 2017-05-19
- 0.1.6 — 2017-05-17
- 0.1.5 — 2017-05-17
- 0.1.0 — 2017-05-17
- 0.0.2 — 2016-01-19
- 0.0.1 — 2016-01-15

## README

# compile-code-loader
Compiles javascript with webpack and loads result as string

#Usage: 

To compile and get result as string:
```js
var compiledSourceString = require('compile-code?asString=true!./fileToLoad');
```


Also it is possible to get result as javascript and apply transformation, uglifyjs for example:
```js
var compiledSourceString = require('raw!uglify!compile-code!./fileToLoad');
```

### Contributing

1. `npm install`
2. `cd examples && npm install`
3. `npm run build-examples`

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