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?
I'm trying to use this on my project fameweka, but it is not working? how you guys do it in Glints?