From 2ebef9d86235cc8c13dc262f1b767bdad77cea02 Mon Sep 17 00:00:00 2001 From: Haoliang Gao Date: Thu, 15 Mar 2018 16:03:21 +0800 Subject: [PATCH] fix: publicPath should be __webpack_public_path__ (#7) --- lib/assets_context.js | 2 +- test/assets.test.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/assets_context.js b/lib/assets_context.js index dc0841e..d0dec6f 100644 --- a/lib/assets_context.js +++ b/lib/assets_context.js @@ -29,7 +29,7 @@ class Assets { let script = ''; if (this.config.publicPath) { - script = ``; + script = ``; } script += scriptTpl({ url: this.getURL(entry) }); return script; diff --git a/test/assets.test.js b/test/assets.test.js index 59e948f..c55196d 100644 --- a/test/assets.test.js +++ b/test/assets.test.js @@ -30,7 +30,7 @@ describe('test/assets.test.js', () => { .expect(/<\/link>/) .expect(/