Skip to content

Instantly share code, notes, and snippets.



Created Mar 15, 2018
What would you like to do?
Demo of parcel + scss
const path = require('path');
const cwd = process.cwd();
module.exports = {
"includePaths": [
path.resolve(cwd, 'node_modules'),
path.resolve(cwd, 'src')
import {MDCRipple} from '@material/ripple';
const button = document.createElement('button');
button.classList.add('mdc-button', 'mdc-button--raised');
button.innerText = 'Hello, world!';
new MDCRipple(button);
@import "@material/button/mdc-button";
@import "@material/typography/mdc-typography";
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="./app.scss"/>
<link rel="stylesheet" href=",400,500">
<body class="mdc-typography">
<div id="app"></div>
<script src="./app.js"></script>
"name": "demo",
"version": "1.0.0",
"description": "",
"main": "app.js",
"scripts": {
"start": "parcel index.html"
"author": "Eirik Brandtzæg <>",
"license": "MIT",
"dependencies": {
"@material/button": "0.32.0",
"@material/typography": "0.28.0"
"devDependencies": {
"node-sass": "4.7.2",
"parcel-bundler": "1.6.2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.