dudulaopo833 / Tools-Learning

各种杂七杂八-错误处理等
0 stars 0 forks source link

Commander.js issue #17

Open dudulaopo833 opened 7 years ago

dudulaopo833 commented 7 years ago

Inquirer.js issue 'Can't resolve './rx.lite''

Solution-Step1: Add below loader into webpack.config.js and yarn/npm install imports-loader

{
test: /rx\.lite\.aggregates\.js/,
use: 'imports-loader?define=>false'
}

Solution-Step 2: Add below plugin to ignore vertx in webpack.config.js

plugins: [
new webpack.IgnorePlugin(/vertx/),
// ,
// new webpack.optimize.UglifyJsPlugin()
]

Solution-Step3: Cannot use UglifyJsPlugin

plugins: [
new webpack.IgnorePlugin(/vertx/),
// ,
// new webpack.optimize.UglifyJsPlugin()
]
dudulaopo833 commented 7 years ago

Commander.js note