-
-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #440 updating css-loader dep and ts-loader dev dep (weaverryan)
This PR was squashed before being merged into the master branch (closes #440). Discussion ---------- updating css-loader dep and ts-loader dev dep Fixes #438 and fixes #431 and I believe fixes #432 This PR is more interesting than I expected! The latest version of `css-loader` (1.0) does not have the `minimize` option. Even though (until now) the older version was locked on our `package.json`, it may have been possible for users to be using a new version (I believe that should not be possible, but node deps can do strange things). Commits ------- 8f7ac59 updating css-loader dep and ts-loader dev dep
- Loading branch information
Showing
9 changed files
with
711 additions
and
462 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 <fabien@symfony.com> | ||
* | ||
* 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) | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.