0.1.0 • Published 5 years ago

babel-plugin-asset-path v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

babel-plugin-asset-path

This package is a babel plugin which add an 'assetPath' field to a exported vue component, its value is the component's full file path. It should be used with parcel-plugin-entry-css together to get critical css styles when server render a vue app.

installation

yarn: yarn add babel-plugin-asset-path -D npm: npm i -D babel-plugin-asset-path