We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57dc915 commit 5909ddeCopy full SHA for 5909dde
scripts/before_compile.js
@@ -66,9 +66,9 @@ module.exports = function(ctx) {
66
let includes = [];
67
walk(buildPath).forEach((file, index) => {
68
let f = path.basename(file);
69
- let [name, ext1, ext2] = f.split('.');
+ let [ext2, ext1, name] = f.split('.').reverse();
70
// we only want js source files and the according sourcemaps (no css etc.)
71
- if (ext1 === 'js' || (ext1 === 'js' && ext2 === 'map')) {
+ if (ext2 === 'js' || (ext1 === 'js' && ext2 === 'map')) {
72
// ignore sw-toolbox file
73
if (name !== 'sw-toolbox') {
74
includes.push(file);
0 commit comments