mirror of
https://github.com/tsl0922/ttyd.git
synced 2025-12-21 19:34:19 +01:00
webpack: disable performance hints
This commit is contained in:
@@ -6,7 +6,7 @@ module.exports = {
|
|||||||
entry: './js/app.js',
|
entry: './js/app.js',
|
||||||
output: {
|
output: {
|
||||||
path: __dirname + '/dist',
|
path: __dirname + '/dist',
|
||||||
filename: devMode ? '[name].js' : '[name].[hash].js'
|
filename: devMode ? '[name].js' : '[name].[hash].js',
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
@@ -18,7 +18,7 @@ module.exports = {
|
|||||||
options: {
|
options: {
|
||||||
presets: ['env']
|
presets: ['env']
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /\.s?[ac]ss$/,
|
test: /\.s?[ac]ss$/,
|
||||||
@@ -26,8 +26,8 @@ module.exports = {
|
|||||||
devMode ? 'style-loader' : MiniCssExtractPlugin.loader,
|
devMode ? 'style-loader' : MiniCssExtractPlugin.loader,
|
||||||
'css-loader',
|
'css-loader',
|
||||||
'sass-loader',
|
'sass-loader',
|
||||||
]
|
],
|
||||||
}
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
@@ -38,5 +38,8 @@ module.exports = {
|
|||||||
filename: devMode ? '[name].css' : '[name].[hash].css',
|
filename: devMode ? '[name].css' : '[name].[hash].css',
|
||||||
chunkFilename: devMode ? '[id].css' : '[id].[hash].css',
|
chunkFilename: devMode ? '[id].css' : '[id].[hash].css',
|
||||||
})
|
})
|
||||||
]
|
],
|
||||||
|
performance : {
|
||||||
|
hints : false
|
||||||
|
},
|
||||||
}
|
}
|
||||||
@@ -10,8 +10,8 @@ module.exports = merge(config, {
|
|||||||
mode: 'development',
|
mode: 'development',
|
||||||
plugins: [
|
plugins: [
|
||||||
new HtmlWebpackPlugin({
|
new HtmlWebpackPlugin({
|
||||||
template: 'index.html'
|
template: 'index.html',
|
||||||
})
|
}),
|
||||||
],
|
],
|
||||||
serve: {
|
serve: {
|
||||||
content: __dirname + '/dist',
|
content: __dirname + '/dist',
|
||||||
@@ -27,6 +27,6 @@ module.exports = merge(config, {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
app.use(convert(ttydProxy));
|
app.use(convert(ttydProxy));
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ module.exports = merge(config, {
|
|||||||
plugins: [
|
plugins: [
|
||||||
new HtmlWebpackPlugin({
|
new HtmlWebpackPlugin({
|
||||||
inlineSource: '.(js|css)$',
|
inlineSource: '.(js|css)$',
|
||||||
template: 'index.html'
|
template: 'index.html',
|
||||||
}),
|
}),
|
||||||
new HtmlWebpackInlineSourcePlugin()
|
new HtmlWebpackInlineSourcePlugin(),
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user