Skip to content
This repository was archived by the owner on Dec 7, 2023. It is now read-only.

Commit c538527

Browse files
authored
Merge pull request #11 from fcsmJS/master
Add picturefill
2 parents ac50b82 + 73a7137 commit c538527

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"node": "^10.16"
1515
},
1616
"dependencies": {
17-
"concurrently": "^5.3.0"
17+
"concurrently": "^5.3.0",
18+
"picturefill": "^3.0.3"
1819
},
1920
"devDependencies": {
2021
"autoprefixer": "9.8.6",

source/html/views/index.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
/>
1111
<title>HTML5 webpack boilerplate</title>
1212
<link rel="stylesheet" href="/vendors/normalize-css/normalize.min.css" />
13+
<script>
14+
if(!window.HTMLPictureElement) {
15+
document.createElement("picture");
16+
};
17+
</script>
1318
</head>
1419
<body>
1520
<!--header.html-->

webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ module.exports = {
3939
mode: isProd ? 'production' : 'development',
4040
entry: {
4141
bundle: './source/js/index.js',
42-
style: './source/scss/style.scss',
42+
libs: ['picturefill'],
43+
style: './source/scss/style.scss'
4344
},
4445
devtool: 'inline-source-map',
4546
devServer: {

0 commit comments

Comments
 (0)