# in-loader

> **install** npm install -D in-loader

Latest version **2.0.0** (published 2022-09-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install in-loader
pnpm add in-loader
yarn add in-loader
bun add in-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 | 2.0.0 |
| Published | 2022-09-05 |
| First published | 2018-06-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 254.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | ygg |
| Maintainers | yegao, ygg |
| Keywords | in-loader |

## Links

- npm: https://www.npmjs.com/package/in-loader
- Repository: https://github.com/yegao/in-loader
- Homepage: https://github.com/yegao/in-loader#readme
- Issues: https://github.com/yegao/in-loader/issues
- npm.io page: https://npm.io/package/in-loader

## Recent versions

- 2.0.0 (latest) — 2022-09-05
- 1.1.0 — 2018-06-06
- 1.0.5 — 2018-06-06
- 1.0.4 — 2018-06-06
- 1.0.3 — 2018-06-06
- 1.0.2 — 2018-06-06
- 1.0.1 — 2018-06-01
- 1.0.0 — 2018-06-01

## README

**install**
npm install -D in-loader

**javascript**
```javascript
<in>./src/a.js</in>
export default "hello world!"
```
You can also use it for other file,for example:xxx.vue

**x.vue**
```html
<template>
  <div>
    <in>./src/tpl/a.tpl</in>
  </div>
</template>
<script></script>
<style></style>
```
**./src/tpl/a.tpl**
```html
<ul>
  <li>item1</li>
  <li>item2</li>
  <li>item3</li>
  <li>item4</li>
  <li>item5</li>
  <li>item6</li>
  <li>item7</li>
  <li>item8</li>
</ul>
```
**webpack.config.js**
```js
module: {
  rules: [
    ...
    {
      test: /\.js$/,
      use: ['babel-loader','in-loader']
    },
    {
      test: /\.vue$/,
      use: ['vue-loader','in-loader']
    }
    ...
  ]
}
```
if you want to use some other tag instead of <in></in> ,you can use option tag;
**webpack.config.js**
```js
module: {
  rules: [
    ...
    {
      test: /\.js$/,
      use: ['babel-loader',{
        loader:'in-loader',
        option:{
          tag:'aaa'
        }
      }]
    }
    ...
  ]
}
```
**javascript**
```javascript
<aaa>./src/a.js</aaa>
export default "hello world!"
```

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