Advanced config
See original GitHub issueHi, 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:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ok, added the clarification to the readme .
Yes, it doesn’t use the plugin. Only client-side Webpack build does.
Yes, you should move those config parameters inside
settings
.No.
In the second argument.