Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nasa/openmct.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Bell <scott@traclabs.com>2022-10-04 20:53:44 +0300
committerGitHub <noreply@github.com>2022-10-04 20:53:44 +0300
commit72c980f9910df0bbf6f473ffb2a288a0d796e294 (patch)
tree7f295e7eb14b3a64a0f9d3f3561f7354bb9f0bb9
parent9bf39a9cd451f05d96912d34611856d6021e0732 (diff)
Have webpack-dev-server write webpack assets to disk (#5836)
* create the files not webpacked and watch css * removing trailing slash
-rw-r--r--webpack.dev.js14
1 files changed, 12 insertions, 2 deletions
diff --git a/webpack.dev.js b/webpack.dev.js
index b8e580f77..9dd738a3a 100644
--- a/webpack.dev.js
+++ b/webpack.dev.js
@@ -36,9 +36,19 @@ module.exports = merge(common, {
],
devtool: 'eval-source-map',
devServer: {
+ devMiddleware: {
+ writeToDisk: (filePathString) => {
+ const filePath = path.parse(filePathString);
+ const shouldWrite = !(filePath.base.includes('hot-update'));
+
+ return shouldWrite;
+ }
+ },
+ watchFiles: ['**/*.css'],
static: {
- directory: path.join(__dirname, '/dist/'),
- publicPath: '/dist'
+ directory: path.join(__dirname, '/dist'),
+ publicPath: '/dist',
+ watch: false
},
client: {
progress: true,