babel-plugin-asset-path
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