question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi, I passed the advanced config to the function ‘serverConfiguration’ as third parameter.

const { serverConfiguration } = require('universal-webpack');
const settings = require('./universal-webpack-settings');
const baseConfiguration = require('./webpack.server.config');

process.env.UNIVERSAL_WEBPACK_CSS_LOADER_V2 = true;

const configuration = (env, { mode }) =>
  serverConfiguration(baseConfiguration(env, { mode }), settings, {
      excludeFromExternals: [
        'lodash-es',
        ' ... ',
        /^some-other-es6-only-module(\/.*)?$/,
      ],
      loadExternalModuleFileExtensions: ['css', 'png', 'jpg', 'svg', 'xml'],
      silent: true,
      chunk_info_filename: 'webpack-chunks-test.json',
      development: mode !== 'production',
});

module.exports = configuration;

Is this done correctly? It seems like chunk_info_filename has no effect, because it remains the default (webpack-chunks.json). I’m not sure now, if the remain of the advanced config gets used.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
catamphetaminecommented, Feb 13, 2019

I suggest to make it more obvious in the readme.

Ok, added the clarification to the readme .

1reaction
catamphetaminecommented, Feb 13, 2019

Running webpack with the server config results in no console logging - no output, except the default lines.

Yes, it doesn’t use the plugin. Only client-side Webpack build does.

Somehow the advanced config doesn’t get passed to the plugin. I assume I try to pass the advanced config at the wrong place?

Yes, you should move those config parameters inside settings.

Does serverConfiguration accept three parameters?

No.

In general I just like to know where to pass the advanced config for the client and the server.

In the second argument.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Advanced Configuration
User Guide for Sun Secure Global Desktop software. This manual covers the basics of using SGD. It describes how to log in and...
Read more >
Configuration - RabbitMQ
The RabbitMQ server source repository contains an example advanced.config file named advanced.config.example. It focuses on the options that are typically set ...
Read more >
Advanced configuration - GitLab Documentation
GitLab Runner also reloads the configuration in response to the SIGHUP signal. You can find the config.toml file in: /etc/gitlab-runner/ on *nix systems...
Read more >
rabbitmq-server/advanced.config.example at main - GitHub
Open source RabbitMQ: core server and tier 1 (built-in) plugins - rabbitmq-server/advanced.config.example at main · rabbitmq/rabbitmq-server.
Read more >
Advanced Configuration - Home Assistant
Advanced Configuration. The onboarding process takes care of the initial setup for Home Assistant, such as naming your home and selecting your location....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found