Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c79db4e

Browse filesBrowse files
In React-Redux template, move Webpack config for images into sharedConfig so that adding images doesn't break the server build
1 parent 9528dd7 commit c79db4e
Copy full SHA for c79db4e

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Open diff view settings
Collapse file

‎templates/ReactReduxSpa/webpack.config.js‎

Copy file name to clipboardExpand all lines: templates/ReactReduxSpa/webpack.config.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ module.exports = (env) => {
1717
},
1818
module: {
1919
rules: [
20-
{ test: /\.tsx?$/, include: /ClientApp/, use: 'awesome-typescript-loader?silent=true' }
20+
{ test: /\.tsx?$/, include: /ClientApp/, use: 'awesome-typescript-loader?silent=true' },
21+
{ test: /\.(png|jpg|jpeg|gif|svg)$/, use: 'url-loader?limit=25000' }
2122
]
2223
},
2324
plugins: [new CheckerPlugin()]
@@ -29,8 +30,7 @@ module.exports = (env) => {
2930
entry: { 'main-client': './ClientApp/boot-client.tsx' },
3031
module: {
3132
rules: [
32-
{ test: /\.css$/, use: ExtractTextPlugin.extract({ use: isDevBuild ? 'css-loader' : 'css-loader?minimize' }) },
33-
{ test: /\.(png|jpg|jpeg|gif|svg)$/, use: 'url-loader?limit=25000' }
33+
{ test: /\.css$/, use: ExtractTextPlugin.extract({ use: isDevBuild ? 'css-loader' : 'css-loader?minimize' }) }
3434
]
3535
},
3636
output: { path: path.join(__dirname, clientBundleOutputDir) },

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.