Skip to content

Consider splitting webpack & related in to a new npm module #552

@sirlancelot

Description

@sirlancelot

When nuxt.js is running in production, it doesn't need webpack. However, because it's listed as dependency it will always be installed.

If an npm module were made (I propose nuxt-dev) which contains these dependencies, a user of Nuxt would be able to add that module to their devDependencies list. The resulting package.json for a Nuxt project would look like this:

{
  "name": "my-app",
  "dependencies": {
    "nuxt": "latest"
  },
  "devDependencies": {
    "nuxt-dev": "latest"
  },
  "scripts": {
    "dev": "nuxt",
    "build": "nuxt build",
    "start": "nuxt start"
  }
}

The nuxt-dev package could contain everything needed "build" the application, while the nuxt package would contain the "runtime" dependencies and any runtime-level code.

This feature request is available on Nuxt.js community (#c477)

Metadata

Metadata

Assignees

No one assigned

    Labels

    2.x✨ enhancementNew feature or improvement to existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions