Created
August 26, 2017 19:38
-
-
Save jaredpalmer/607f4eebe5e0acde3dac4819b039cccb to your computer and use it in GitHub Desktop.
Step 1
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 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