mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
chore: add type to webpack config file (#12072)
This commit is contained in:
@@ -16,6 +16,7 @@ if (relativePath === undefined) {
|
||||
relativePath = urlObject.pathname !== '/' ? urlObject.pathname.replace(/\/+$/, '') : '';
|
||||
}
|
||||
|
||||
/** @type { import('webpack').Configuration } */
|
||||
module.exports = {
|
||||
plugins: [],
|
||||
entry: {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
const { merge } = require('webpack-merge');
|
||||
const common = require('./webpack.common');
|
||||
|
||||
module.exports = merge(common, {
|
||||
module.exports = merge(common, /** @type { import('webpack').Configuration } */ {
|
||||
mode: 'development',
|
||||
// devtool: 'eval-source-map',
|
||||
});
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
const path = require('path');
|
||||
|
||||
/** @type { import('webpack').Configuration } */
|
||||
module.exports = {
|
||||
mode: 'production',
|
||||
entry: {
|
||||
|
||||
@@ -6,7 +6,7 @@ const ProgressPlugin = require('progress-webpack-plugin');
|
||||
|
||||
const common = require('./webpack.common');
|
||||
|
||||
module.exports = merge(common, {
|
||||
module.exports = merge(common, /** @type { import('webpack').Configuration } */ {
|
||||
mode: 'production',
|
||||
plugins: [
|
||||
new ProgressPlugin(true),
|
||||
|
||||
Reference in New Issue
Block a user