Skip to content
Snippets Groups Projects
Commit c19e5be6 authored by Charles Girardot's avatar Charles Girardot
Browse files

dd missign bin dir

parent 1dacbf3f
Branches main
No related tags found
No related merge requests found
#!/usr/bin/env node
if (process.env.NODE_ENV !== 'production') {
if (!require('piping')({
hook: true,
ignore: /(\/\.|~$|\.json$)/i
})) {
return;
}
}
require('../server.babel'); // babel registration (runtime transpilation for node)
require('../api/api');
#!/usr/bin/env node
require('../server.babel'); // babel registration (runtime transpilation for node)
var path = require('path');
var rootDir = path.resolve(__dirname, '..');
/**
* Define isomorphic constants.
*/
global.__CLIENT__ = false;
global.__SERVER__ = true;
global.__DISABLE_SSR__ = false; // <----- DISABLES SERVER SIDE RENDERING FOR ERROR DEBUGGING
global.__DEVELOPMENT__ = process.env.NODE_ENV !== 'production';
if (__DEVELOPMENT__) {
if (!require('piping')({
hook: true,
ignore: /(\/\.|~$|\.json|\.scss$)/i
})) {
return;
}
}
// https://github.com/halt-hammerzeit/webpack-isomorphic-tools
var WebpackIsomorphicTools = require('webpack-isomorphic-tools');
global.webpackIsomorphicTools = new WebpackIsomorphicTools(require('../webpack/webpack-isomorphic-tools'))
.development(__DEVELOPMENT__)
.server(rootDir, function() {
require('../src/server');
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment