Rocketact

Rocketact

  • Docs
  • GitHub

›Development

Getting Started

  • Getting Started
  • Folder Structure
  • Available Scripts
  • Supported Browsers and Features
  • Custom Templates

Development

  • Managing Dependencies
  • Adding Pages
  • Adding Stylesheets
  • Post-Processing CSS
  • Adding Images
  • Http proxy

Deployment

  • Public Path

Plugins

  • What is the plugin?
  • rocketact-plugin-polyfill
  • rocketact-plugin-bundle-analyzer
  • Plugin template
  • Awesome Plugins
Edit

Adding Pages

If your project is a multi-pages application and you want to add a new page. All you need to do is creating two new files(.tsx and .html) in src/pages folder. Just make sure they share the same filename so that Rocketact can detect the new page.

├── src
│   ├── pages
│   │   ├── home.html
│   │   ├── home.tsx
│   │   ├── list.html
│   │   ├── list.tsx
│   │   ├── detail.html
│   │   ├── detail.tsx
│   │   ├── search.html
│   │   ├── search.tsx
│   │   ├── profile.tsx
│   │   └── profile.html
Last updated on 3/25/2019 by loveky
← Managing DependenciesAdding Stylesheets →
Rocketact
Docs
Getting Started
Community
User ShowcaseIssues
More
GitHubStar
Copyright © 2018-present Rocketact documentation authors.