Skip to content

Commit

Permalink
Moved styling from production to renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
amilajack committed Dec 2, 2016
1 parent 09a36e7 commit fb26aa8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
4 changes: 0 additions & 4 deletions webpack.config.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ export default validate({
}, {
test: /\.json$/,
loader: 'json-loader'
},
{
test: /\.(?:ico|gif|png|jpg|jpeg|webp)$/,
loader: 'url-loader'
}]
},

Expand Down
11 changes: 8 additions & 3 deletions webpack.config.production.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import merge from 'webpack-merge';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import baseConfig from './webpack.config.base';

const config = validate(merge(baseConfig, {
export default validate(merge(baseConfig, {
devtool: 'cheap-module-source-map',

entry: [
Expand Down Expand Up @@ -43,11 +43,18 @@ const config = validate(merge(baseConfig, {
)
},

// Fonts
{ test: /\.woff(\?v=\d+\.\d+\.\d+)?$/, loader: 'url?limit=10000&mimetype=application/font-woff' },
{ test: /\.woff2(\?v=\d+\.\d+\.\d+)?$/, loader: 'url?limit=10000&mimetype=application/font-woff' },
{ test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/, loader: 'url?limit=10000&mimetype=application/octet-stream' },
{ test: /\.eot(\?v=\d+\.\d+\.\d+)?$/, loader: 'file' },
{ test: /\.svg(\?v=\d+\.\d+\.\d+)?$/, loader: 'url?limit=10000&mimetype=image/svg+xml' },

// Images
{
test: /\.(?:ico|gif|png|jpg|jpeg|webp)$/,
loader: 'url-loader'
}
]
},

Expand Down Expand Up @@ -79,5 +86,3 @@ const config = validate(merge(baseConfig, {
// https://github.com/chentsulin/webpack-target-electron-renderer#how-this-module-works
target: 'electron-renderer'
}));

export default config;

0 comments on commit fb26aa8

Please sign in to comment.