Coder Social home page Coder Social logo

vueincore's People

Contributors

shawnwildermuth avatar

Stargazers

Asif Mushtaq avatar Matt Hanson avatar Jonathan Counihan avatar Henrik Jensen avatar tobiashungwe avatar Eddie Brady avatar  avatar Ranjan Dailata avatar Rory Pinkney avatar Lukas Malsch avatar Michael Cavanaugh avatar Aswin Arshad avatar Otohits avatar Janusz Jasinski avatar Babula avatar

Watchers

 avatar Michael Cavanaugh avatar  avatar

vueincore's Issues

Could this approach be used with Vite as well?

Hi @shawnwildermuth thanks for this blog post, really like the approach and it is very helpful.

Do you know if this is possible with Vite? From what I can see you must have an index.html file as well as main.js for each page that you want to create a separate bundle/page section for. Looking at the rollup options for Vite: https://vitejs.dev/config/build-options.html#build-rollupoptions, it does not seem this is possible in the same way as the Pages variable as used for vue.config.ts?

I am looking for a way to use the razor cshtml files as the launching point for each page and then a "mini-spa" on each main razor page (so I can use ASP.NET antiforgery token for example, and any other razor goodies...)

Do you have any advice on how to do that?

Thanks.

Awesome Example, any chance on updating to vue 3?

Just looking for your opinions in doing something like this with Vue 3. With easier support on SSR rendered pages in vue 3 without nuxt now I'm not sure how viable a solution like this would be with Vue 3, IMO.

how to include prod vue scripts with hashes in razor page

Hi!

Couldn't leave comment/question with article anymore, so I'm asking here .....

How do I include proper vue scripts (npm build)

<script src=/js/chunk-vendors.6ef87ee7.js></script>
<script src=/js/index.9d28a0e2.js></script>

in the razor page

@page
@model IndexModel
@{
  ViewData["Title"] = "Home page";
}
@section Scripts {
  <script src="~/app/js/chunk-vendors.js"></script>
  <script src="~/app/js/index.js"></script>
}
<div id="app"></div>

My main purpose to use your approach would be to be independent of basepath during vue build,
use app.UsePathBase("/optionalpath") and inject it as global js variable...

Thanks and Best Regards,
Stefan

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.