Skip to content

Node express, webpack, babel es6 & sass boilerplate in 8 files

Notifications You must be signed in to change notification settings

dkim-95112/webpack-es6-sass-empty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webpack-es6-sass-empty

An empty node express, webpack, sass-loader, project

package.json

"scripts": {
  "run-node": "node app.js",
  "pack-web": "webpack --config webpack.config.babel.js"
}

app.js

router
  .use('/', express.static('client/build/dist'))
  .get('/', (req, res) => {
    res
      .send('<script src="bundle.js"></script>')
  })

webpack.config.babel.js

entry: {
  index: './client/index.js'
}

Modules

./client/index.js

import css from './index.scss' // Adding <script> tag to dom
const foo = 'bar'
document.write(`
<!doctype html>
<head>
<title>Helo worl title</title>
</head>
<body>
<h1>Helo ${foo} body</h1>
</body>
`) // Es6 template string

About

Node express, webpack, babel es6 & sass boilerplate in 8 files

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published