Add improved performance marks for development mode (#3297)
This commit is contained in:
parent
531c1bb245
commit
2469fd1cdc
5 changed files with 46 additions and 1 deletions
8
config/webpack/loaders/mark.js
Normal file
8
config/webpack/loaders/mark.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
if (process.env.NODE_ENV === 'production') {
|
||||
module.exports = {};
|
||||
} else {
|
||||
module.exports = {
|
||||
test: /\.js$/,
|
||||
loader: 'mark-loader',
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue