Skip to content

Commit

Permalink
v2.0.9
Browse files Browse the repository at this point in the history
新增可导入配置路径
  • Loading branch information
Taoja committed Jan 18, 2021
1 parent dbc55b9 commit 5e8737a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const path = require('path')
const config = require(path.resolve(process.cwd(), 'webpack.config.js'))
const argv = process.argv
const configDir = argv.find(item => item === '-f') ? argv[argv.findIndex(item => item === '-f') + 1] ? argv[argv.findIndex(item => item === '-f') + 1] : 'webpack.config.js' : 'webpack.config.js'
const config = require(path.resolve(process.cwd(), configDir))
class Config extends config {
get default () {
return this.webpack(_G.env, _G.packages, _G.entrys, _G.config)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dividing",
"version": "2.0.8",
"version": "2.0.9",
"description": "a tool for multi-page project",
"keywords": [
"splitter",
Expand Down

0 comments on commit 5e8737a

Please sign in to comment.