js: move raw loader definition. Fixes odd bug in CE/EE injection.

This commit is contained in:
Marcin Lulek 2018-10-30 15:25:38 +01:00
parent f525c01bb6
commit 989fc393a8
2 changed files with 6 additions and 1 deletions

View file

@ -1,5 +1,6 @@
const styleElement = document.createElement('dom-module');
import sharedCSS from 'raw-loader!./style-polymer.css';
// this will use raw-loader
import sharedCSS from './style-polymer.css';
styleElement.innerHTML =
`<template>

View file

@ -43,6 +43,10 @@ module.exports = {
// CSS, and (thanks to our loader) HTML.
module: {
rules: [
{
test: /style-polymer.css/,
use: 'raw-loader'
},
{
// If you see a file that ends in .html, send it to these loaders.
test: /\.html$/,