-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Update to webpack5 #1097
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Update to webpack5 #1097
Changes from all commits
801e8f5
20cf0fe
65f8740
e2eb337
c60382a
29c0545
7ab3744
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +0,0 @@ | ||
| !function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=4)}({4:function(e,t,r){}}); | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /** | ||
| * @preserve HTML5 Shiv 3.7.3-pre | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed | ||
| */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /** | ||
| * @preserve HTML5 Shiv 3.7.3 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed | ||
| */ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,32 +16,27 @@ module.exports = { | |
| }, | ||
| module: { | ||
| rules: [ | ||
| { | ||
| test: require.resolve("./src/theme.js"), | ||
| use: "imports-loader?this=>window" | ||
| }, | ||
|
Comment on lines
-19
to
-22
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This didn't seem to be needed anymore, seem to work fine without? could remove |
||
| { | ||
| test: /\.sass$/, | ||
| use: [ | ||
| { | ||
| loader: MiniCssExtractPlugin.loader, | ||
| options: { | ||
| hmr: false, | ||
| reloadAll: true | ||
| } | ||
| }, | ||
| { | ||
| loader: "css-loader" | ||
| }, | ||
| { | ||
| loader: "sass-loader?indentedSyntax", | ||
| loader: "sass-loader", | ||
| options: { | ||
| includePaths: [ | ||
| "node_modules/bourbon/app/assets/stylesheets", | ||
| "node_modules/bourbon-neat/app/assets/stylesheets", | ||
| "node_modules/font-awesome/scss", | ||
| "node_modules/wyrm/sass" | ||
| ] | ||
| sassOptions: { | ||
| indentedSyntax: true, | ||
| includePaths: [ | ||
| "node_modules/bourbon/app/assets/stylesheets", | ||
| "node_modules/bourbon-neat/app/assets/stylesheets", | ||
| "node_modules/font-awesome/scss", | ||
| "node_modules/wyrm/sass" | ||
| ], | ||
| }, | ||
| } | ||
| } | ||
| ] | ||
|
|
@@ -66,11 +61,13 @@ module.exports = { | |
| filename: "css/[name].css?[hash]", | ||
| chunkFilename: "css/[name].css?[hash]" | ||
| }), | ||
| new CopyPlugin([ | ||
| { | ||
| from: 'node_modules/html5shiv/dist/*.min.js', | ||
| flatten: true, | ||
| to: path.resolve(__dirname,'sphinx_rtd_theme/static/js') }, | ||
| ]), | ||
| new CopyPlugin({ | ||
| patterns: [ | ||
| { | ||
| from: 'node_modules/html5shiv/dist/**/*.min.js', | ||
| to: path.resolve(__dirname,'sphinx_rtd_theme/static/js/[name][ext]') | ||
| }, | ||
| ], | ||
| }), | ||
| ] | ||
| }; | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why this file was generated to begin with but now it generates empty