Skip to content

Commit

Permalink
fix(build option): inline.jsHtmlImports should match only .html impor…
Browse files Browse the repository at this point in the history
…ts when js is all on one line, fix for prod build
  • Loading branch information
jyounce committed Jan 10, 2018
1 parent 9e26a0e commit 4dc718d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/gulp-inline-js-html-imports.coffee
Expand Up @@ -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
Expand Down

0 comments on commit 4dc718d

Please sign in to comment.