Merge branch 'chore/remove-inline-js' into 'master'

Remove inline javascript

See merge request pleroma/admin-fe!16
This commit is contained in:
feld 2019-05-10 19:10:10 +00:00
commit 2145acb4c4

View file

@ -70,10 +70,6 @@ const webpackConfig = merge(baseWebpackConfig, {
// in certain cases, and in webpack 4, chunk order in HTML doesn't // in certain cases, and in webpack 4, chunk order in HTML doesn't
// matter anyway // matter anyway
}), }),
new ScriptExtHtmlWebpackPlugin({
//`runtime` must same as runtimeChunk name. default is `runtime`
inline: /runtime\..*\.js$/
}),
// keep chunk.id stable when chunk has no name // keep chunk.id stable when chunk has no name
new webpack.NamedChunksPlugin(chunk => { new webpack.NamedChunksPlugin(chunk => {
if (chunk.name) { if (chunk.name) {