Skip to content
Permalink
Browse files

fix(build option): inline.jsHtmlImports should match import when from…

… doesn't have a space after it
  • Loading branch information
jyounce committed Jan 2, 2018
1 parent b311cab commit 9e26a0e3c49524e1b1e9e3b46ed3daf1b6990c45
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/plugins/gulp-inline-js-html-imports.coffee
@@ -59,7 +59,7 @@ Regx =
/<link\s+(?:[^>]*?\s+)?href=(?:"|')?([^"]*\.css)(?:"|')?[\s\S]*?>/g

htmlImports:
/\bimport\s+(?:(.+?)\s+from\s+)?[\'"`]([^`"\']+\.html)[`"\'](?=\s*?(;|\/\/|\/\*|\n|$))(\s*;)?/g
/\bimport\s+(?:(.+?)\s+from\s*?)?[\'"`]([^`"\']+\.html)[`"\'](?=\s*?(;|\/\/|\/\*|\n|$))(\s*;)?/g

htmlImport: (statement) -> # :RegExp
# /import template from '..\/views\/rb-nav.html';\n?/g

0 comments on commit 9e26a0e

Please sign in to comment.
You can’t perform that action at this time.