mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-27 13:38:33 +02:00
chore: nits
This commit is contained in:
parent
e13e1bffb4
commit
1f2c8a39a9
4 changed files with 7 additions and 8 deletions
|
@ -3,13 +3,11 @@ const staticSiteGenerator = require('static-site-generator-webpack-plugin');
|
|||
const webpackNiceLog = require('webpack-nicelog');
|
||||
const createBaseConfig = require('./base');
|
||||
|
||||
module.exports = function createProdConfig(props) {
|
||||
module.exports = function createServerConfig(props) {
|
||||
const config = createBaseConfig(props, true);
|
||||
|
||||
config.entry('main').add(path.resolve(__dirname, '../core/serverEntry.js'));
|
||||
|
||||
config.target('node');
|
||||
|
||||
config.output.filename('server.bundle.js').libraryTarget('commonjs2');
|
||||
|
||||
// Workaround for Webpack 4 Bug (https://github.com/webpack/webpack/issues/6522)
|
||||
|
@ -28,6 +26,7 @@ module.exports = function createProdConfig(props) {
|
|||
paths
|
||||
}
|
||||
]);
|
||||
|
||||
// show compilation progress bar and build time
|
||||
config
|
||||
.plugin('niceLog')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue