This repository was archived by the owner on Jun 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
log.exportResolvedPaths { local_options } #19
Labels
enhancement
New feature or request
Comments
Can you describe it more with example configurations? |
Note: I have added additional notes in the first message. Yes, of course. For example: start({
rootDir: process.cwd(),
cacheDir: './.reboost_cache',
entries: [
['./src/index.js', './public/dist/index.js']
],
contentServer: {
root: './public'
},
index: 'index.html'
},
resolve: {
alias: {
ConfigFiles: './.config_files',
Public: './public',
Src: './src'
},
},
sourceMaps: {
include: /.*/,
exclude: /node_modules/
},
watchOptions: {
include: /.*/,
exclude: /\..*|node_modules|.*.json|.*.code-workspace|reboost.js/,
chokidar: {
cwd: process.cwd()
}
}
},
plugins: [
UsePlugin({
include: /.(png|jpg|jpeg)$/i,
exclude: /.*/,
use: FilePlugin()
}),
UsePlugin({
include: /.*/,
exclude: /node_modules/,
use: BabelPlugin()
}),
CSSPlugin({
modules: {
test: /\.module\./i
}
})
]
}) When log.exportResolvedPaths: {
include: /.*/,
exclude: /node_modules/,
columnsDisplayed: ['relative_file_path', 'absolute_file_path', 'Option.property_name', 'relative_path_set', 'ABOSLUTE_PATH_resolved'],
exportTo: 'terminal',
maxFilesNo: 5
} then, the following should be given:
This should also include
|
We do not really need it, too! You may keep it as a low priority feature in future when all other high priorities will have been settled down and you'll wonder what else small features can be added to "improve/develop" the project. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
A problem which I usually face, and probably other users, too, is the correct declaration of relative paths, especially of those ones which are related to foreign packages/modules config options.
I suggest a new option to be created; the
log.exportResolvedPaths
one, which records all resolvedoptions
paths in a user friendly form such as:relative_file_path
,absolute_file_path
,Option.property_name
,relative_path_set
,ABOSLUTE_PATH_resolved
and exports them either to the
terminal
or to a file.local_options
would include properties such as:include
,exclude
,columnsDisplayed
: string[],exportTo
:terminal
|'path_to_log_file'Moreover,
showResponseTime
option would also be moved under thelog
option aslog.showResponseTime
.Additional notes:
maxFilesNo
property may be set, to control the files per directory that are exported whenregex
is used.The text was updated successfully, but these errors were encountered: