mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-08 23:30:53 +00:00
Dependency Maintenance
* Start using the [pnpm](https://pnpm.io/) package manager rather than npm. * Replace `node-sass` with `sass`. * Update versions of many dependencies * Didn't yet update webpack to v5, since that'll be a mess. * Clean some old build scripts out of package.json
This commit is contained in:
parent
76b72b86c8
commit
1c3e73e143
8 changed files with 6220 additions and 11504 deletions
|
@ -27,18 +27,23 @@ module.exports = merge(common, {
|
|||
],
|
||||
|
||||
devServer: {
|
||||
hot: false,
|
||||
https: true,
|
||||
port: 8000,
|
||||
compress: true,
|
||||
inline: false,
|
||||
|
||||
allowedHosts: [
|
||||
'.twitch.tv',
|
||||
'.frankerfacez.com'
|
||||
],
|
||||
|
||||
contentBase: path.join(__dirname, 'dev_cdn'),
|
||||
publicPath: '/script/',
|
||||
static: {
|
||||
directory: path.join(__dirname, 'dev_cdn'),
|
||||
},
|
||||
|
||||
devMiddleware: {
|
||||
publicPath: '/script/',
|
||||
},
|
||||
|
||||
proxy: {
|
||||
'**': {
|
||||
|
@ -47,7 +52,9 @@ module.exports = merge(common, {
|
|||
}
|
||||
},
|
||||
|
||||
before(app) {
|
||||
onBeforeSetupMiddleware(devServer) {
|
||||
const app = devServer.app;
|
||||
|
||||
// Because the headers config option is broken.
|
||||
app.get('/*', (req, res, next) => {
|
||||
res.setHeader('Access-Control-Allow-Origin', '*');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue