Coder Social home page Coder Social logo

jsakamoto / toolbelt.blazor.devserver.withcsslivereloader Goto Github PK

View Code? Open in Web Editor NEW
20.0 4.0 1.0 690 KB

Development server for use when building Blazor applications, with CSS Live Reloader.

License: Apache License 2.0

C# 45.51% HTML 35.14% CSS 19.35%
blazor-webassembly live-reload

toolbelt.blazor.devserver.withcsslivereloader's Introduction

Blazor Dev Server with CSS Live Reloader NuGet Package

Summary

Alternative Blazor Dev Server to be available CSS live reloading.

fig.1

This is an alternative development server for use when building Blazor WebAssembly standalone (not ASP.NET Core hosted) applications, include CSS live reloader.a

There are already many live reloading solutions.
However, instead of this middleware works for only CSS files, it reload styles more smoothly rather than other solutions.

How to use

What you have to do is, just rewrite your project file (.csproj) to replace the Blazor Dev Server package from ASP.NET Core edition to this one.

<!-- This is your project file (.csproj) -->
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
  ...
  <ItemGroup>
    ...
    <!-- Remove this ๐Ÿ‘‡ package reference, and ... -->
    <!--
    <PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="5.0.4" PrivateAssets="all" />
    -->

    <!-- Add this ๐Ÿ‘‡ package reference, instead. -->
    <PackageReference Include="Toolbelt.Blazor.DevServer.WithCssLiveReloader" Version="5.0.4" PrivateAssets="all" />
    ...

That's all!

Supported Blazor Versions

  • Blazor WebAssembly v.3.2.1 ๐Ÿ‘‰ Use v.3.2.1.200 of this package.
  • Blazor WebAssembly v.5.0.0 ๐Ÿ‘‰ Use v.5.0.0 of this package.
  • Blazor WebAssembly v.5.0.1 ๐Ÿ‘‰ Use v.5.0.1 of this package.
  • Blazor WebAssembly v.5.0.2 ๐Ÿ‘‰ Use v.5.0.2 of this package.
  • Blazor WebAssembly v.5.0.3 ๐Ÿ‘‰ Use v.5.0.3 of this package.
  • Blazor WebAssembly v.5.0.4 ๐Ÿ‘‰ Use v.5.0.4 of this package.

For Blazor WebAssembly ASP.NET Core hosted...

If you building a Blazor WebAssembly app which is ASP.NET Core hosted, please use Toolbelt.AspNetCore.CssLiveReloader NuGet package, instead of this.

See also: Toolbelt.AspNetCore.CssLiveReloader NuGet package

Release Notes

Release Notes is here.

License

Apache License Version 2.0

toolbelt.blazor.devserver.withcsslivereloader's People

Contributors

jsakamoto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

tarikbateman

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.