Giter Site home page Giter Site logo

Comments (4)

Nordes avatar Nordes commented on June 17, 2024

Hi Shaigalili, which template were you using? I need more details on what error you're having. I currently build the 2 projects within docker without any issue.

Don't forget that you need to have NodeJs

from honosoft.dotnet.web.spa.projecttemplates.

shaig4 avatar shaig4 commented on June 17, 2024

Hi Nordes,
I've used this on windows, VS 2019, with NodeJs installed.

from honosoft.dotnet.web.spa.projecttemplates.

Nordes avatar Nordes commented on June 17, 2024

Humm I also use that setup. I think you have a specific issue. Have you tried to reload the page after? I know that the wwwroot is empty when the web app starts. You refresh a second after and it's ok.

On my local version, i was tired of F5, so I added the following:

Update webpack.config.js

'use strict'
const fs = require('fs') // added
// ....
console.info(`Building for production: ` + isProduction)
rimraf.sync(path.resolve(_rootDir, 'wwwroot/**/*'), { silent: true })

// Avoid to create the file when publishing to production, otherwise the publish might fails.
if (!isProduction) {
  fs.createReadStream(path.resolve(_rootDir, 'build/index.loading.html')) // added
    .pipe(fs.createWriteStream(path.resolve(_rootDir, 'wwwroot/index.html'))) // added
}
// ...

new file created under the build folder index.loading.html

<html>
  <head>
    <title>Building...</title>
  </head>
  <body>
    Loading ...
    <script>setInterval(() => {
      location.reload()
    }, 400);</script>
  </body>
</html>

from honosoft.dotnet.web.spa.projecttemplates.

Nordes avatar Nordes commented on June 17, 2024

Fixed, a loadng "message" is now showing and load the page when ready.

image

from honosoft.dotnet.web.spa.projecttemplates.

Related Issues (20)

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.