Skip to content

Commit 5175ab6

Browse files
committed
Added mini-css-extract-plugin
1 parent a7acbec commit 5175ab6

File tree

13 files changed

+713
-8
lines changed

13 files changed

+713
-8
lines changed

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
registry=https://registry.npmjs.org/

docs/makeup-switch-element/index.compiled.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"use strict";
22

3+
require("../../packages/makeup-switch-element/src/index.css");
4+
require("../../packages/makeup-switch-element/src/skeleton.css");
35
const MakeupSwitchElement = require('../../packages/makeup-switch-element');
46
window.onload = function () {
57
document.querySelectorAll('makeup-switch').forEach(function (el, i) {

docs/makeup-switch-element/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<title>makeup-switch-element</title>
66
<link href="../docs.css" rel="stylesheet" />
77
<!-- <link href="../theme-1.css" rel="stylesheet" /> -->
8-
<link href="skeleton.css" rel="stylesheet" />
8+
<link href="makeup-switch-element.css" rel="stylesheet" />
99
<link rel="icon" href="../favicon.ico" type="image/x-icon">
1010
</head>
1111
<body>
@@ -19,7 +19,7 @@ <h2>Declarative</h2>
1919
<span id="label1">makeup-switch 1</span>
2020
<makeup-switch labelledby="label1">
2121
<template shadowrootmode="open">
22-
<link href="switch.css" rel="stylesheet" />
22+
<link href="makeup-switch-element.css" rel="stylesheet" />
2323
<span class="switch">
2424
<span class="switch__control" role="switch" tabindex="0"></span>
2525
<span class="switch__button"></span>
@@ -31,7 +31,7 @@ <h2>Declarative</h2>
3131
<span id="label2">makeup-switch 2</span>
3232
<makeup-switch labelledby="label2" checked>
3333
<template shadowrootmode="open">
34-
<link href="switch.css" rel="stylesheet" />
34+
<link href="makeup-switch-element.css" rel="stylesheet" />
3535
<span class="switch">
3636
<span class="switch__control" role="switch" tabindex="0"></span>
3737
<span class="switch__button"></span>
@@ -43,7 +43,7 @@ <h2>Declarative</h2>
4343
<span id="label3">makeup-switch 3</span>
4444
<makeup-switch labelledby="label3" disabled>
4545
<template shadowrootmode="open">
46-
<link href="switch.css" rel="stylesheet" />
46+
<link href="makeup-switch-element.css" rel="stylesheet" />
4747
<span class="switch">
4848
<span class="switch__control" role="switch" tabindex="0"></span>
4949
<span class="switch__button"></span>
@@ -55,7 +55,7 @@ <h2>Declarative</h2>
5555
<span id="label4">makeup-switch 4</span>
5656
<makeup-switch labelledby="label4" checked disabled>
5757
<template shadowrootmode="open">
58-
<link href="switch.css" rel="stylesheet" />
58+
<link href="makeup-switch-element.css" rel="stylesheet" />
5959
<span class="switch">
6060
<span class="switch__control" role="switch" tabindex="0"></span>
6161
<span class="switch__button"></span>

docs/makeup-switch-element/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
const MakeupSwitchElement = require('../../packages/makeup-switch-element');
2+
import "../../packages/makeup-switch-element/src/index.css";
3+
import "../../packages/makeup-switch-element/src/skeleton.css";
24

35
window.onload = function() {
46
document.querySelectorAll('makeup-switch').forEach(function(el, i) {

docs/makeup-switch-element/index.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/makeup-switch-element/index.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/makeup-switch-element/makeup-switch-element.css

Lines changed: 115 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/makeup-switch-element/makeup-switch-element.css.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)