Skip to content
Permalink
Browse files

fix(build option): inline.jsHtmlImports should match only .html impor…

…ts when js is all on one line, fix for prod build
  • Loading branch information
jyounce committed Jan 10, 2018
1 parent 9e26a0e commit 4dc718dd0550fec35955f87565e045236a8d28b6
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+(?=[^;]+\.html)(?:(.+?)\s+from\s*?)?[\'"`]([^`"\']+\.html)[`"\'](?=\s*?(;|\/\/|\/\*|\n|$))(\s*;)?/g

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

0 comments on commit 4dc718d

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