Skip to content

Commit

Permalink
Merge pull request #2628 from nextcloud/fix/2627/styleguide-serve
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv authored Apr 9, 2022
2 parents 71e8f2f + 618ca78 commit c08b06a
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
16 changes: 16 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
"jest-serializer-vue": "^2.0.2",
"jest-transform-stub": "^2.0.0",
"node-sass": "^7.0.1",
"process": "^0.11.10",
"raw-loader": "^4.0.1",
"resolve-url-loader": "^5.0.0",
"sanitize-filename": "^1.6.3",
Expand Down
10 changes: 10 additions & 0 deletions styleguide.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const path = require('path')
const { merge } = require('webpack-merge')
const webpack = require('webpack')
const webpackConfig = require('./webpack.dev.js')

const newConfig = Object.assign({}, webpackConfig, {
Expand All @@ -10,6 +11,15 @@ const newConfig = Object.assign({}, webpackConfig, {
rule => rule.use !== 'eslint-loader'
),
},
plugins: [
...webpackConfig.plugins,
new webpack.HotModuleReplacementPlugin(),
new webpack.ProvidePlugin({
// Webpack 5 does no longer include a polyfill for this Node.js variable.
// https://webpack.js.org/migrate/5/#run-a-single-build-and-follow-advice
process: 'process/browser'
})
],
})

module.exports = {
Expand Down

0 comments on commit c08b06a

Please sign in to comment.