Giter Club home page Giter Club logo

Comments (9)

Bohooslav avatar Bohooslav commented on June 23, 2024 2

@ubikitty, a little markdown hint use triple ``` around your code to opend multiline code block like this one

export default defineConfig({
    base: '',
	plugins: [imba()],
	build: {
		outDir: 'static/imba',
		lib: {
			entry: 'src/app.imba',
			formats: ['es'],
			fileName: 'app',
		}
	}
});

from imba.

familyfriendlymikey avatar familyfriendlymikey commented on June 23, 2024 2

Okay I've added it to undocumented https://imba.io/undocumented.

Also for posterity, this use case is documented https://imba.io/guides/incremental and provided as the module template https://github.com/imba/imba/tree/master/packages/imba/templates/module.

from imba.

familyfriendlymikey avatar familyfriendlymikey commented on June 23, 2024 1

If you're fine building your project with Vite, you can disable hashing in the vite.config.js file. Happy to provide more instructions if this is a viable solution for you.

from imba.

Bohooslav avatar Bohooslav commented on June 23, 2024

Yes it disappeared when there was some shift, probably to Vite, if I remember it well. I remember Sindre said that it should be easy to add, and I think that it should be definitely add back again.

from imba.

ubikitty avatar ubikitty commented on June 23, 2024

@Bohooslav Yes it would be nice to have it back, I totally agree! =)

@familyfriendlymikey I am not using vite but why not if it solves my little hashing problem. Your instructions would be more than welcomed, thank you! My project is very simple since it just needs to compile Imba files to a unique set of javascript/css files ready to be embedded in a browser.

from imba.

ubikitty avatar ubikitty commented on June 23, 2024

Finally I tried something like this (vite.config.js) which seems to work ok for now.
I am not sure of the options we may pass to the imba plugin.
If it is obviously completely wrong, do not hesitate to re-orient me in a sane direction!
Thanks

export default defineConfig({
        base: '',
	plugins: [imba()],
	build: {
		outDir: 'static/imba',
		lib: {
			entry: 'src/app.imba',
			formats: ['es'],
			fileName: 'app',
		}
	}
});

from imba.

familyfriendlymikey avatar familyfriendlymikey commented on June 23, 2024

That looks about right to me. Glad you got it working :)

from imba.

Bohooslav avatar Bohooslav commented on June 23, 2024

@familyfriendlymikey if that is so easy, how much time it would take to add back the documented!!! --no-hashing feature?

from imba.

Bohooslav avatar Bohooslav commented on June 23, 2024

Thank you! 💟

from imba.

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.