Skip to content

Instantly share code, notes, and snippets.

@jaredpalmer
Created August 26, 2017 19:38
Show Gist options
  • Save jaredpalmer/607f4eebe5e0acde3dac4819b039cccb to your computer and use it in GitHub Desktop.
Save jaredpalmer/607f4eebe5e0acde3dac4819b039cccb to your computer and use it in GitHub Desktop.
Step 1
const path = require('path');
module.exports = {
webpack: (config, options, webpack) => {
// change Backpack's default entry point to 'src/server.js'
config.entry.main = path.join(__dirname, 'src/server.js');
// Tell Backpack how to handle .css files (load into memory and noop)
config.module.rules.push({
test: /\.css$/,
use: ['css-loader'],
});
return config;
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment