Skip to content

Commit

Permalink
Merge pull request #1 from amiezhang/amiezhang-patch-1
Browse files Browse the repository at this point in the history
node path 兼容windows
  • Loading branch information
amiezhang authored Mar 2, 2019
2 parents b1aa7ce + 687fab4 commit 042fbf8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ykit.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ var assetsPluginInstance = new AssetsPlugin({
var fs = require('fs');
var package = require('./package.json');
var yapi = require('./server/yapi');
var isWin = require('os').platform() === 'win32'

var compressPlugin = new CompressionPlugin({
asset: '[path].gz[query]',
Expand Down Expand Up @@ -78,7 +79,7 @@ module.exports = {
defaultQuery.plugins.push(['import', { libraryName: 'antd' }]);
return defaultQuery;
},
exclude: /(tui-editor|node_modules\/(?!_?(yapi-plugin|json-schema-editor-visual)))/
exclude: isWin ? /(tui-editor|node_modules\\(?!_?(yapi-plugin|json-schema-editor-visual)))/ : /(tui-editor|node_modules\/(?!_?(yapi-plugin|json-schema-editor-visual)))/
}
}
],
Expand Down

0 comments on commit 042fbf8

Please sign in to comment.