Giter Site home page Giter Site logo

multi-page-svelte's Introduction

multi-page-svelte

Create multiple svelte-pages with this template. Relies on default template https://github.com/sveltejs/template

Usage

npx degit Tom-Siegel/multi-page-svelte
  1. Create as many Page-files as you want (see src/main.js or src/second.js)
  2. Go to rollup-pages.config.js and set the inputs
const inputs = [
  "main", //string defaults to input: src/[name].js and output: public/build/[name].js
  {
    input: "src/second.js",
    output: { file: "public/build/second.js", name: "second" },
    css: "public/build/second.css",
  }, //object for setting more specific values for input and output of roolup configuration
];
  1. Set up your html-files by adding the main.js, main.css and global.css
  2. Build the project
npm run build

Testing

npm run dev

Or

npm run start

Open your browser url: localhost:5000

main.js --> http://localhost:5000/index.html

second.js --> http://localhost:5000/second.html

multi-page-svelte's People

Contributors

tom-siegel avatar

Stargazers

HG avatar  avatar  avatar Nick avatar CBO avatar  avatar FoxT3c avatar Antonio Forgione avatar  avatar KeineAhnung avatar Ken Arok avatar Whatever avatar Bintang Parama Andra Dewanto avatar  avatar  avatar Jim Kang avatar Amal Shaji avatar Hans Meiser avatar Kusno Mudiarto avatar 99corps avatar Kiswono Prayogo avatar  avatar

Watchers

 avatar

multi-page-svelte's Issues

No global styles in dev mode

In dev mode, global styles are not displayed correctly.

And after first deploy, when files are saved the app dont update changes ...

[2022-02-13 19:27:14] waiting for changes...

I think you have done a good job and I would love to use it. It's a pity that for 2 small mistakes all your great work is useless for me.

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.