Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

rollup-plugin-jtaro-module

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-jtaro-module

A Rollup plugin for JTaro Module.

latest
Source
npmnpm
Version
0.3.2
Version published
Weekly downloads
20
-16.67%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

jtaro-module

FAQs

Package last updated on 29 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts