Skip to content

Commit

Permalink
feat: drop sass, remove require, update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdor committed Mar 24, 2021
1 parent 1df648d commit 2f0b0ba
Show file tree
Hide file tree
Showing 7 changed files with 32,888 additions and 6,634 deletions.
1 change: 0 additions & 1 deletion .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"extends": [
"stylelint-config-standard",
"stylelint-config-recommended-scss",
"stylelint-config-sass-guidelines",
"stylelint-config-prettier"
],
Expand Down
19 changes: 2 additions & 17 deletions demo/bundle.js

Large diffs are not rendered by default.

10 changes: 4 additions & 6 deletions demo/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const MCFlubber = require("@kissmybutton/motorcortex-flubber");
const MC = require("@kissmybutton/motorcortex");
import MC from "@kissmybutton/motorcortex";
import MCFlubber from "@kissmybutton/motorcortex-flubber";
import Player from "../dist/motorcortex-scroller.esm.js";
const FlubberPlugin = MC.loadPlugin(MCFlubber);
const Player = require("../dist/motorcortex-scroller.umd.js");

const myClip = new MC.HTMLClip({
id: "my-clip",
Expand All @@ -16,7 +16,7 @@ const myClip = new MC.HTMLClip({
display:block;
}
svg{
background: black;
background: black;
}`,
});

Expand Down Expand Up @@ -73,5 +73,3 @@ new Player({
position: "bottom",
},
});

// myClip.play();
19 changes: 1 addition & 18 deletions demo/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,6 @@ module.exports = {
test: /\.css$/,
use: ["style-loader", "css-loader"],
},
{
test: /\.scss$/,
use: [
{
loader: "style-loader",
options: { sourceMap: true }, // creates style nodes from JS strings
},
{
loader: "css-loader",
options: { sourceMap: true }, // translates CSS into CommonJS
},
{
loader: "sass-loader",
options: { sourceMap: true }, // compiles Sass to CSS
},
],
},
],
},

Expand Down Expand Up @@ -73,5 +56,5 @@ module.exports = {
},
node: {
fs: "empty",
}
},
};
Loading

0 comments on commit 2f0b0ba

Please sign in to comment.