##// END OF EJS Templates
js: move raw loader definition. Fixes odd bug in CE/EE injection.
ergo -
r3180:a5902294 default
parent child Browse files
Show More
@@ -1,5 +1,6 b''
1 const styleElement = document.createElement('dom-module');
1 const styleElement = document.createElement('dom-module');
2 import sharedCSS from 'raw-loader!./style-polymer.css';
2 // this will use raw-loader
3 import sharedCSS from './style-polymer.css';
3
4
4 styleElement.innerHTML =
5 styleElement.innerHTML =
5 `<template>
6 `<template>
@@ -44,6 +44,10 b' module.exports = {'
44 module: {
44 module: {
45 rules: [
45 rules: [
46 {
46 {
47 test: /style-polymer.css/,
48 use: 'raw-loader'
49 },
50 {
47 // If you see a file that ends in .html, send it to these loaders.
51 // If you see a file that ends in .html, send it to these loaders.
48 test: /\.html$/,
52 test: /\.html$/,
49 // This is an example of chained loaders in Webpack.
53 // This is an example of chained loaders in Webpack.
General Comments 0
You need to be logged in to leave comments. Login now