aboutsummaryrefslogtreecommitdiffstats
path: root/config/webpack/loaders
diff options
context:
space:
mode:
Diffstat (limited to 'config/webpack/loaders')
-rw-r--r--config/webpack/loaders/scoped-loader.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/webpack/loaders/scoped-loader.js b/config/webpack/loaders/scoped-loader.js
index c2f9636..ec7b7eb 100644
--- a/config/webpack/loaders/scoped-loader.js
+++ b/config/webpack/loaders/scoped-loader.js
@@ -12,7 +12,7 @@ const getScriptType = scriptName => {
};
module.exports = function (source) {
- return `/*<--\t${getScriptType(path.basename(this.resourcePath))}\t-->*/
+ return `/*<--\t${getScriptType(this.resourcePath.replace(path.resolve(SOURCE_DIR, "scripts") + "/", ""))}\t-->*/
(() => {\n${source}\n})();
/*<---->*/`
};