# webpack-compiler

> webpack-compiler

Latest version **0.1.0** (published 2016-11-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install webpack-compiler
pnpm add webpack-compiler
yarn add webpack-compiler
bun add webpack-compiler
```

## 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.0 |
| Published | 2016-11-20 |
| First published | 2016-11-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | nimojs |
| Maintainers | nimojs |
| Keywords | markruncompile, markrun, webpack, markdown |

## Links

- npm: https://www.npmjs.com/package/webpack-compiler
- Repository: https://github.com/markrun/webpack-compiler
- Homepage: https://github.com/markrun/webpack-compiler#readme
- Issues: https://github.com/markrun/webpack-compiler/issues
- npm.io page: https://npm.io/package/webpack-compiler

## Dependencies (4)

- [extend](https://npm.io/package/extend.md) ^3.0.0
- [deasync](https://npm.io/package/deasync.md) ^0.1.8
- [proxy-fs](https://npm.io/package/proxy-fs.md) 0.0.10
- [memory-fs](https://npm.io/package/memory-fs.md) ^0.3.0

## Alternatives

- [@mdxeditor/editor](https://npm.io/package/@mdxeditor/editor.md) — 962.4K weekly downloads
- [mmdb-lib](https://npm.io/package/mmdb-lib.md) — 680.9K weekly downloads
- [playcanvas](https://npm.io/package/playcanvas.md) — 36.2K weekly downloads
- [@glw907/cairn-cms](https://npm.io/package/@glw907/cairn-cms.md) — 967 weekly downloads
- [markdown-to-confluence](https://npm.io/package/markdown-to-confluence.md) — 103 weekly downloads

## Recent versions

- 0.1.0 (latest) — 2016-11-20

## README

# webpack-compiler

[![Build Status](https://api.travis-ci.org/markrun/webpack-compiler.svg)](https://travis-ci.org/markrun/webpack-compiler) [![NPM version](https://img.shields.io/npm/v/webpack-compiler.svg?style=flat)](https://npmjs.org/package/webpack-compiler) [![NPM downloads](http://img.shields.io/npm/dm/webpack-compiler.svg?style=flat)](https://npmjs.org/package/webpack-compiler)


```js
var path = require('path')
var webpackCompiler = require('webpack-compiler')

var output = webpackCompiler({
    filepath: path.join(__dirname, 'test/commonjs/index.js'),
    webpack: webpack,
    webpackConfig: {
        module: {
            loaders: [
                {
                    test: /\.css$/,
                    loader: "style!css"
                }
            ]
        }
    },
    content: fs.readFileSync(jspath).toString()
})
```
**output.code:** [test/commonjs/index.js.output.js](./test/commonjs/index.js.output.js)
**output.stats:**  http://webpack.github.io/docs/node.js-api.html#stats
**output.stats.compilation.fileDependencies:**
```js
[
    "/Users/nimo/Documents/git/markrun-compile-webpack/node_modules/css-loader/lib/css-base.js",
    "/Users/nimo/Documents/git/markrun-compile-webpack/node_modules/style-loader/addStyles.js",
    "/Users/nimo/Documents/git/markrun-compile-webpack/test/commonjs/a.css",
    "/Users/nimo/Documents/git/markrun-compile-webpack/test/commonjs/a.js",
    "/Users/nimo/Documents/git/markrun-compile-webpack/test/commonjs/b.js",
    "/Users/nimo/Documents/git/markrun-compile-webpack/test/commonjs/index.js"
]
```

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