Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/starptech/parcel-plugin-razor
Parcel plugin to handle Razor templates as entry points
https://github.com/starptech/parcel-plugin-razor
asset cshtml parcel razor
Last synced: 20 days ago
JSON representation
Parcel plugin to handle Razor templates as entry points
- Host: GitHub
- URL: https://github.com/starptech/parcel-plugin-razor
- Owner: StarpTech
- License: mit
- Created: 2018-04-12T15:30:28.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-04-13T10:12:14.000Z (over 6 years ago)
- Last Synced: 2024-10-06T02:42:26.131Z (3 months ago)
- Topics: asset, cshtml, parcel, razor
- Language: JavaScript
- Size: 7.81 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# parcel-plugin-razor
Parcel plugin to handle Razor templates `.cshtml` as entry-points.## Install
> Using plugins in Parcel could not be any simpler. All you need to do is install them and save in your package.json. Plugins should be named with the prefix parcel-plugin-, e.g. parcel-plugin-foo. Any dependencies listed in package.json with this prefix will be automatically loaded during initialization.
Install with [npm](https://www.npmjs.com/):
```bash
$ npm install --save parcel-plugin-razor
```Install with [yarn](https://yarnpkg.com):
```bash
$ yarn add parcel-plugin-razor
```## Configuration
If you would like to enforce your own asset extension simply create `.razor.json` or `razor.config.js` in your project root.
```js
{
"type": "html" // the output extension of your entry file (default: html)
}
```