Skip to content
This repository was archived by the owner on May 29, 2022. It is now read-only.

Document usage of metadata object (webpack-dev-server) #9

@mike-morr

Description

@mike-morr

I am having trouble figuring out how to get webpack-dev-server working with the config-env-development.

Here is my config:

const generateConfig = require('@easy-webpack/core').generateConfig;
const glob = require("glob");

const baseConfig = {
  entry: {
    'pnp': ['./src/pnp'],
  },
  output: {
    path: "./dist",
    filename: "[name].js"
  }
}

//if (NODE_ENV = "development") {
    module.exports = generateConfig(
        baseConfig,
        require('@easy-webpack/config-env-development')({ port:3000, host: 'localhost:3000' }),
        require('@easy-webpack/config-typescript')(),
        {devtool: 'source-map'}
    );
//}

I am calling it like this:

webpack-dev-server --config webpack.config.js

It compiles fine and I get the output fine, but there is no server running. Any help would be greatly appreciated. Great work btw!!

┆Issue is synchronized with this Asana task

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions