Replies: 3 comments 8 replies
-
We actually have |
Beta Was this translation helpful? Give feedback.
-
Cool! I’m working on an introduction to React and there, I want to reduce “magic” as much as possible. (However, as programmers progress, they probably do want more magic in their lives.) This is the structure I went with (I’m not completely happy with where I had to put
<a href="html/quiz.html"><tt>quiz.html</tt></a>
<script type="module" src="../js/quiz.js"></script>
import React, {useState} from '../web_modules/react.js';
import ReactDOM from '../web_modules/react-dom.js';
import {html} from '../web_modules/htm/react.js';
import produce from '../web_modules/immer.js';
{
"install": [
"react",
"react-dom",
"htm/react",
"immer"
],
"mount": {
"html": "/html",
"js": "/js"
},
"devOptions": {
"open": "none"
},
"installOptions": { "treeshake": false }
} Problems and wishes:
|
Beta Was this translation helpful? Give feedback.
-
@rauschma Yea that makes sense. I'm not sure what that For what you've described, I'd recommend using Plus, you get |
Beta Was this translation helpful? Give feedback.
-
When working with plain JavaScript:
web_modules
to disk, as$PROJECT/web_modules
snowpack install
?Benefits:
file:
URLs now.build/
directory.Caveats:
Beta Was this translation helpful? Give feedback.
All reactions