Is it possible to use a razor view i.e. _Layout.cshtml as the build target? Right now it simply copies the file without building the JS/CSS etc. If I change the file to a .html extension the build happens as expected but the razor html helpers are removed.
Trying to migrate from Gulp to Parcel in an Asp.net project. Right now we are in the proof of concept. Please let me know if you need more detail.
"scripts": {
"build": "parcel build /Views/Shared/_Layout.cshtml --public-url ./"
}
| Software | Version(s) |
| ---------------- | ---------- |
| Parcel | [email protected]
| Node | v8.11.3
| npm/Yarn | 5.6.0 / 1.7
| Operating System | Windows 10
It's impossible to build cshtml with parcel.
You can however build all your js and css using parcel like this: parcel something.js somethingelse.css
Is it possible to build multiple js files? For example header.js, footer.js
Sorry, I didn't completely understand your answer at first. I just need to do parcel header.js footer.js
Thanks for your help sir!