Skip to content

Commit

Permalink
Merge pull request #1689 from SUI-Components/feat/allow_statics_folde…
Browse files Browse the repository at this point in the history
…r_for_statics_dev

feat(packages/sui-bundler): Allow statics folder for Statics in Dev
  • Loading branch information
xaviermariaconejo authored Dec 22, 2023
2 parents cdeb739 + c3af51b commit 2f1ffe0
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions packages/sui-bundler/factories/createDevServerConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,16 @@ module.exports = config => ({
'Access-Control-Allow-Methods': '*',
'Access-Control-Allow-Headers': '*'
},
static: {
directory: 'public',
watch: getWatchOptions(config)
},
static: [
{
directory: 'statics',
watch: getWatchOptions(config)
},
{
directory: 'public',
watch: getWatchOptions(config)
}
],
hot: true,
host,
historyApiFallback: {
Expand Down

0 comments on commit 2f1ffe0

Please sign in to comment.