Giter VIP home page Giter VIP logo

Comments (11)

simeonackermann avatar simeonackermann commented on July 19, 2024

Should solved with latest commit 17e6db3 (it was an old main.min.js)

from building-navigator.

k00ni avatar k00ni commented on July 19, 2024

Do you update dist/main.min.js on file changes or do i have to do that manually?

from building-navigator.

simeonackermann avatar simeonackermann commented on July 19, 2024

from building-navigator.

k00ni avatar k00ni commented on July 19, 2024

Many steps neccessary? Can we move that into a Makefile or something to reduce the time load?

from building-navigator.

simeonackermann avatar simeonackermann commented on July 19, 2024

from building-navigator.

k00ni avatar k00ni commented on July 19, 2024

But I don't think it's a good idea the recreate the dist with each new commit

Why not? The dist folder should be valid and contain the latest changes. If we want to carry out packages, which update only after days/weeks/months ... we could use Github's release section. But i wanted to use the dist from the beginning, to be able to try out the app without any further work.

Could you sketch here how it should work to update dist-folder manually, by calling like make update-dist. On each Git commit sounds hard to implement.

from building-navigator.

simeonackermann avatar simeonackermann commented on July 19, 2024

177bf27 implements command npm build-dist. It has to executed in the running Docker container.

from building-navigator.

k00ni avatar k00ni commented on July 19, 2024

Thanks! Will look into it.

from building-navigator.

k00ni avatar k00ni commented on July 19, 2024

Please use this for round 3.

package.json:

"devDependencies": {
        ...
        "write-file-webpack-plugin": "*"
    }

webpack.config.json:

...
var WriteFilePlugin = require('write-file-webpack-plugin');

module.exports = {
    ...
    output: {
        ...
    },
    plugins: [
        new WriteFilePlugin() // plugin to write compiled JS into dist folder
    ],
    ...
}

from building-navigator.

simeonackermann avatar simeonackermann commented on July 19, 2024

As I pointed out the disadvantages of using WriteFilePlugin (esp. js min size) we may close this issue?

To build dist on each commit/push we can create a pre-push hook as a reminder or programmatically create dist and append to commit.

from building-navigator.

k00ni avatar k00ni commented on July 19, 2024

As we decided we use two configurations, dev and prod, for future releases.

from building-navigator.

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.