docker run --name recorder-redis -p 6379:6379 -d redis:alpine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const express = require('express') | |
| const sassMiddleware = require('node-sass-middleware') | |
| const app = express() | |
| app.use(sassMiddleware({ | |
| /* Options */ | |
| src: path.join(__dirname, '../public/scss'), | |
| response: true, | |
| debug: true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // polyfill for webpacks' require.ensure() | |
| // credit: https://github.com/webpack/webpack/issues/183#issuecomment-169186696 | |
| // | |
| let proto = Object.getPrototypeOf(require) | |
| !proto.hasOwnProperty('ensure') && Object.defineProperties(proto, { | |
| 'ensure': { | |
| value: function ensure (modules, callback) { | |
| callback(this) | |
| }, | |
| writable: false |
OlderNewer