mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-12 00:50:53 +00:00
Update webpack build configuration to work with changes to the FFZ CDN.
This commit is contained in:
parent
79e4b02e6b
commit
57152e8ed5
2 changed files with 4 additions and 2 deletions
|
@ -41,6 +41,8 @@ const config = module.exports = merge(common, {
|
|||
}
|
||||
}),
|
||||
new ManifestPlugin({
|
||||
basePath: 'babel/',
|
||||
publicPath: 'babel/',
|
||||
map: data => {
|
||||
if ( data.name.endsWith('.scss') )
|
||||
data.name = `${data.name.substr(0,data.name.length - 5)}.css`;
|
||||
|
@ -51,7 +53,7 @@ const config = module.exports = merge(common, {
|
|||
],
|
||||
|
||||
output: {
|
||||
publicPath: '//cdn.frankerfacez.com/script/babel/',
|
||||
publicPath: '//cdn.frankerfacez.com/static/babel/',
|
||||
path: path.resolve(__dirname, 'dist/babel'),
|
||||
filename: '[name].[hash].js'
|
||||
}
|
||||
|
|
|
@ -50,7 +50,7 @@ const config = module.exports = merge(common, {
|
|||
],
|
||||
|
||||
output: {
|
||||
publicPath: '//cdn.frankerfacez.com/script/',
|
||||
publicPath: '//cdn.frankerfacez.com/static/',
|
||||
filename: '[name].[hash].js'
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue