mirror of
https://github.com/scratchfoundation/scratch-render.git
synced 2025-08-22 11:19:15 -04:00
refactor: [UEPR-17] Removed splitting code to chunks and restored used by tests html files
This commit is contained in:
parent
3ed744c17f
commit
991269bb52
10 changed files with 110 additions and 129 deletions
|
@ -3,7 +3,6 @@ const webpack = require('webpack');
|
|||
|
||||
const TerserPlugin = require('terser-webpack-plugin');
|
||||
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||
|
||||
const ScratchWebpackConfigBuilder = require('scratch-webpack-configuration');
|
||||
|
||||
|
@ -41,19 +40,7 @@ const webConfig = baseConfig.clone()
|
|||
name: 'ScratchRender'
|
||||
}
|
||||
}
|
||||
})
|
||||
.addPlugin(new HtmlWebpackPlugin({
|
||||
chunks: 'all',
|
||||
filename: 'index.html',
|
||||
template: 'test/integration/index.ejs',
|
||||
scriptLoading: 'blocking'
|
||||
}))
|
||||
.addPlugin(new HtmlWebpackPlugin({
|
||||
chunks: 'all',
|
||||
filename: 'cpu-render.html',
|
||||
template: 'test/integration/cpu-render.ejs',
|
||||
scriptLoading: 'blocking'
|
||||
}));
|
||||
});
|
||||
|
||||
const playgroundConfig = baseConfig.clone()
|
||||
.setTarget('browserslist')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue