Add '-loader' suffix to all Webpack loader references

This commit is contained in:
Scott Addie
2016-11-19 14:20:52 -06:00
committed by Steve Sanderson
parent bbbcb5ef18
commit 3a4936dbf7
17 changed files with 36 additions and 36 deletions

View File

@@ -16,7 +16,7 @@ var sharedConfig = () => ({
module: {
loaders: [
{ test: /\.tsx?$/, include: /ClientApp/, loader: 'babel-loader' },
{ test: /\.tsx?$/, include: /ClientApp/, loader: 'ts', query: { silent: true } }
{ test: /\.tsx?$/, include: /ClientApp/, loader: 'ts-loader', query: { silent: true } }
]
}
});
@@ -27,8 +27,8 @@ var clientBundleConfig = merge(sharedConfig(), {
entry: { 'main-client': './ClientApp/boot-client.tsx' },
module: {
loaders: [
{ test: /\.css$/, loader: ExtractTextPlugin.extract(['css']) },
{ test: /\.(png|jpg|jpeg|gif|svg)$/, loader: 'url', query: { limit: 25000 } }
{ test: /\.css$/, loader: ExtractTextPlugin.extract(['css-loader']) },
{ test: /\.(png|jpg|jpeg|gif|svg)$/, loader: 'url-loader', query: { limit: 25000 } }
]
},
output: { path: path.join(__dirname, clientBundleOutputDir) },

View File

@@ -11,7 +11,7 @@ module.exports = {
module: {
loaders: [
{ test: /\.(png|woff|woff2|eot|ttf|svg)(\?|$)/, loader: 'url-loader?limit=100000' },
{ test: /\.css(\?|$)/, loader: extractCSS.extract(['css']) }
{ test: /\.css(\?|$)/, loader: extractCSS.extract(['css-loader']) }
]
},
entry: {