-
-
Notifications
You must be signed in to change notification settings - Fork 199
updating css-loader dep and ts-loader dev dep #440
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
* This file is part of the Symfony Webpack Encore package. | ||
* | ||
* (c) Fabien Potencier <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin'); | ||
const applyOptionsCallback = require('../utils/apply-options-callback'); | ||
|
||
/** | ||
* @param {WebpackConfig} webpackConfig | ||
* @return {object} | ||
*/ | ||
module.exports = function(webpackConfig) { | ||
const optimizePluginOptions = { | ||
// see: https://github.com/NMFR/optimize-css-assets-webpack-plugin/issues/53#issuecomment-400294569 | ||
// we always use annotations: true, which is the setting if you're | ||
// outputting to a separate file because this plugin is only | ||
// used in production, and, in production, we always use the | ||
// source-map option (a separate file) in config-generator. | ||
cssProcessorOptions: { | ||
map: { | ||
inline: false, | ||
annotation: true, | ||
} | ||
} | ||
}; | ||
|
||
return new OptimizeCSSAssetsPlugin( | ||
applyOptionsCallback(webpackConfig.optimizeCssPluginOptionsCallback, optimizePluginOptions) | ||
); | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,14 +32,15 @@ | |
"babel-loader": "^8.0.0", | ||
"chalk": "^2.4.1", | ||
"clean-webpack-plugin": "^0.1.19", | ||
"css-loader": "^0.28.10", | ||
"css-loader": "^1.0.0", | ||
"fast-levenshtein": "^2.0.6", | ||
"file-loader": "^1.1.10", | ||
"friendly-errors-webpack-plugin": "^1.7.0", | ||
"fs-extra": "^2.0.0", | ||
"loader-utils": "^1.1.0", | ||
"lodash": ">=3.5 <5", | ||
"mini-css-extract-plugin": ">=0.4.0 <0.4.3", | ||
"optimize-css-assets-webpack-plugin": "^5.0.1", | ||
"pkg-up": "^1.0.0", | ||
"pretty-error": "^2.1.1", | ||
"resolve-url-loader": "^2.3.0", | ||
|
@@ -82,7 +83,7 @@ | |
"sinon": "^2.3.4", | ||
"stylus": "^0.54.5", | ||
"stylus-loader": "^3.0.2", | ||
"ts-loader": "^4.3.0", | ||
"ts-loader": "^5.3.0", | ||
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 is in |
||
"typescript": "^2.3.4", | ||
"url-loader": "^1.0.1", | ||
"vue": "^2.3.4", | ||
|
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.
chunk.files.indexOf(filename)
could bei
instead