js: move raw loader definition. Fixes odd bug in CE/EE injection.
This commit is contained in:
parent
f525c01bb6
commit
989fc393a8
2 changed files with 6 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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$/,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue