Skip to content

Example doesn't work #8

Open
Open
@empeje

Description

@empeje
dependencies {
    "@glints/hapi-webpack-dev-server-plugin": "^1.0.4",
    "webpack": "^4.38.0",
    "webpack-dev-middleware": "^3.7.0",
    "webpack-hot-middleware": "^2.25.0"
}
import WebpackDevServerPlugin from '@glints/hapi-webpack-dev-server-plugin';
import webpack from 'webpack';
import webpackConfig from '../webpack.config';


  if (FAMEWEKA_ENV === 'development') {
    console.log('this code is executed');
    const compiler = webpack(webpackConfig);

    await hapi.register({
      plugin: WebpackDevServerPlugin,
      options: {
        compiler,
        devMiddlewareOptions: {
          // Define options for webpack-dev-middleware
          publicPath: webpackConfig.output.publicPath,
          stats: {
            modules: false
          }
        }
      }
    });
  }

I'm trying to use this on my project fameweka, but it is not working? how you guys do it in Glints?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions