nuken Docs
  • Welcome to the nuken Docs!
  • 📚The Basics
    • Your workspace
      • Viewing the console
      • Preview options
    • Exporting your project
      • Save as template
      • Saving to memory
    • Importing / recovering a project
    • Downloading content
  • ⚙️The Menus
    • Settings Menu
      • Danger Zone
      • Startup Behavior
      • Workspace
    • Project Config Menu
      • Configure meta tags
      • Project details
      • Project location
    • Stylesheet Management
      • Resource codenames
    • Script Management
      • Resource codenames
    • Share / Discovery
    • Downloaded Content
  • 🎨Options / Customization
    • Themes
      • Swapping themes
      • Installing themes
      • Developing themes
    • Templates
      • Installing templates
      • Using templates
      • Developing templates
    • Add-ons
      • Installing add-ons
      • Using add-ons
      • Developing add-ons
  • 😎Extras
    • GitHub Lookup
      • manifest.json
Powered by GitBook
On this page

Was this helpful?

  1. The Menus
  2. Project Config Menu

Project location

Let's get to the "root" of the problem here.

PreviousProject detailsNextStylesheet Management

Last updated 2 years ago

Was this helpful?

Chances are, when you export your nuken project, you're going to place it in a folder somewhere on your device, alongside other files. This section of the Project Config Menu tells nuken where to look for those files. Instead of having to type out an absolute file path, over and over, you can tell nuken where your project's root directory is once. nuken will then "fill in the blanks", allowing you to use relative file paths in your workspace.

We could go into a crazy amount of detail on the difference between absolute and relative file paths, and why they're important in web development, but we think is a much better explanation. (Plus, there are code examples to steal 😈)

For example,

We've entered file:///C:/Temp/ into the input box. So now, when we preview our project, we get this.

This image is located at file:///C:/Temp/meme.jpeg. You could type this entire file path into the src attribute instead, but the Config Menu makes this so much easier. Now, nuken knows to look in file:///C:/Temp/ for any files you reference with a relative file path.

In our example here, we used local resources - file:///. However, this works with http:// or https:// as well.

If you're not sure whether a file location exists, you can test for it. nuken will open a pop-up window using your input as the URL, so if the location doesn't exist, the pop-up window will be blank.

For security purposes, this feature will always return a blank pop-up window if your input contains file:///. This is intentional.

⚙️
this