mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-21 20:17:50 +02:00
fix(v2): webpack ejs warning during build (#1325)
This commit is contained in:
parent
57d06a8da3
commit
f0ff211c94
1 changed files with 1 additions and 0 deletions
|
@ -16,6 +16,7 @@ module.exports = function createServerConfig(props) {
|
|||
|
||||
config.entry('main').add(path.resolve(__dirname, '../core/serverEntry.js'));
|
||||
config.target('node');
|
||||
config.resolve.alias.set('ejs', 'ejs/ejs.min.js').end();
|
||||
config.output.filename('server.bundle.js').libraryTarget('commonjs2');
|
||||
|
||||
// no need to minimize server bundle since we only run server compilation to generate static html files
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue