Skip to content
This repository has been archived by the owner on Nov 14, 2022. It is now read-only.

Latest commit

 

History

History
32 lines (20 loc) · 825 Bytes

README.md

File metadata and controls

32 lines (20 loc) · 825 Bytes

Warning This project is no longer maintained, it is replaced by the work of the DFINITY teams see forum

dfx_svelte_poc

Recipe to setup Svelte with Internet Computer starting from dfx new

Create dfx project

dfx new <my_project>

Install extra svelte

npm install --save svelte svelte-loader;
npm install --save-dev mini-css-extract-plugin;
npm install --save-dev css-loader;

update webpack.config.js

see diff_with_webpack_dfx_011.pdf

update source

  • _./src/<my_project>frontend/src/App.svelte
  • _./src/<my_project>frontend/src/index.html
  • _./src/<my_project>frontend/src/index.js

Try it!

Open in Gitpod