1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-31 10:20:55 +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:
SirStendec 2021-11-06 20:12:55 -04:00
parent 76b72b86c8
commit 1c3e73e143
8 changed files with 6220 additions and 11504 deletions

View file

@ -22,18 +22,23 @@ module.exports = merge(prod, {
],
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: {
'**': {
@ -42,7 +47,9 @@ module.exports = merge(prod, {
}
},
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', '*');