Skip to content

Commit

Permalink
additional changes for Webpack2
Browse files Browse the repository at this point in the history
  • Loading branch information
mlwigdahl committed Feb 8, 2017
1 parent 13e82c0 commit f26169c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ export default {
})
],
module: {
loaders: [
rules: [
{test: /\.jsx?$/, exclude: /node_modules/, loaders: ['babel-loader']},
{test: /\.eot(\?v=\d+.\d+.\d+)?$/, loader: 'file-loder'},
{test: /\.eot(\?v=\d+.\d+.\d+)?$/, loader: 'file-loader'},
{test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: 'url-loader?limit=10000&mimetype=application/font-woff'},
{test: /\.[ot]tf(\?v=\d+.\d+.\d+)?$/, loader: 'url-loader?limit=10000&mimetype=application/octet-stream'},
{test: /\.svg(\?v=\d+\.\d+\.\d+)?$/, loader: 'url-loader?limit=10000&mimetype=image/svg+xml'},
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default {
}),

// Minify JS
new webpack.optimize.UglifyJsPlugin(),
new webpack.optimize.UglifyJsPlugin({ sourceMap: true }),

new webpack.LoaderOptionsPlugin({
minimize: true,
Expand All @@ -72,7 +72,7 @@ export default {
})
],
module: {
loaders: [
rules: [
{test: /\.jsx?$/, exclude: /node_modules/, loader: 'babel-loader'},
{test: /\.eot(\?v=\d+.\d+.\d+)?$/, loader: 'url-loader?name=[name].[ext]'},
{test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: 'url-loader?limit=10000&mimetype=application/font-woff&name=[name].[ext]'},
Expand Down

0 comments on commit f26169c

Please sign in to comment.