npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

rollup-plugin-jtaro-module

v0.3.2

Published

A Rollup plugin for JTaro Module.

Readme

rollup-plugin-jtaro-module

A Rollup plugin for JTaro Module.

Installation

npm install --save-dev rollup-plugin-jtaro-module

Usage

// rollup.config.js
import jtaroModule from 'rollup-plugin-jtaro-module'

export default {
  entry: 'entry.js',
  dest: 'bundle.js',
  plugins: [
    jtaroModule()
  ]
}
// entry.js
import './reset.css'
import './layout.css'

import template from './template.html'

Options

  • root Your site root directory, relative to your project directory.
// rollup.config.js
import jtaroModule from 'rollup-plugin-jtaro-module'

export default {
  entry: 'entry.js',
  dest: 'bundle.js',
  plugins: [
    jtaroModule({
      root: 'website',
      html2Render: true
    })
  ]
}

LOG

v0.3.2 (2018-10-29)

  • 修复引入*.css文件时打包出现无限循环的bug

v0.3.1 (2018-10-26)

  • 修复html2Render选项,只有有与html同名的js文件才转成vue的render函数

v0.3.0 (2018-10-26)

  • 添加html2Render选项,可把html文件转换为vue的render函数,同时把同名的js文件的template: html转成render: html.render,\nstaticRenderFns: html.staticRenderFns

v0.2.3 (2018-06-07)

  • 去掉html文件的注释及空行,减少输出的文件体积

v0.2.2 (2018-05-15)

  • 使不管html文件是否有style标签,都把路径放首个div里

v0.2.1 (2017-05-20)

  • 修复sourceMap不能断点的问题

v0.2.0 (2017-05-19)

  • 添加sourceMap支持

v0.1.0 (2017-05-16)

  • 使打包后的style样式在最前面创建,保证样式优先

v0.0.7 (2017-04-28)

  • 修复@keyframes@media被误处理的问题

v0.0.6 (2017-04-19)

  • 支持this.myclass {}选择器语法

v0.0.5 (2017-02-24)

  • 将所有页面style合并到一起

License

MIT