@jinker/autodll-webpack-plugin
Advanced tools
Comparing version 0.3.2 to 0.3.3
@@ -14,2 +14,4 @@ 'use strict'; | ||
var _url = require('url'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -25,4 +27,4 @@ | ||
return relative ? relativePath : (0, _path.join)(settings.publicPath, relativePath); | ||
return relative ? relativePath : (0, _url.resolve)(settings.publicPath, relativePath); | ||
}; | ||
}; |
@@ -172,8 +172,3 @@ 'use strict'; | ||
}).map(function (item) { | ||
var filename = item.filename; | ||
var publicPath = getPublicDllPath(filename); | ||
if (!process.IS_DEBUG) { | ||
return `/${publicPath}`; | ||
} | ||
return publicPath; | ||
return getPublicDllPath(item.filename); | ||
}); | ||
@@ -180,0 +175,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"description": "[![Build Status](https://travis-ci.org/asfktz/autodll-webpack-plugin.svg?branch=master)](https://travis-ci.org/asfktz/autodll-webpack-plugin)", | ||
@@ -8,0 +8,0 @@ "main": "lib/index.js", |
import findCacheDir from 'find-cache-dir'; | ||
import { join } from 'path'; | ||
import { resolve } from 'url'; | ||
@@ -10,4 +11,4 @@ export const cacheDir = findCacheDir({ name: 'autodll-webpack-plugin' }); | ||
return relative ? relativePath : join(settings.publicPath, relativePath); | ||
return relative ? relativePath : resolve(settings.publicPath, relativePath); | ||
}; | ||
}; |
@@ -122,8 +122,3 @@ import { DllReferencePlugin } from 'webpack'; | ||
.map((item) => { | ||
const filename = item.filename; | ||
const publicPath = getPublicDllPath(filename); | ||
if (!process.IS_DEBUG) { | ||
return `/${publicPath}`; | ||
} | ||
return publicPath; | ||
return getPublicDllPath(item.filename); | ||
}); | ||
@@ -130,0 +125,0 @@ |
71833
1233