Skip to content

Commit

Permalink
Allow '.' in the configured module extension. Closes ember-cli#45.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreeman committed Sep 6, 2016
1 parent 34bafd8 commit 2f10008
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/modules-preprocessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ ModulesPreprocessor.prototype.toTree = function(inputTree, path) {
});

this.modulesTree = new CSSModules(modulesSources, {
extension: this.owner.getFileExtension(),
plugins: this.getPlugins(),
postcssOptions: this.owner.getPostcssOptions(),
generateScopedName: this.scopedNameGenerator(),
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
],
"dependencies": {
"broccoli-concat": "^2.1.0",
"broccoli-css-modules": "^0.3.6",
"broccoli-css-modules": "^0.4.1",
"broccoli-funnel": "^1.0.1",
"broccoli-merge-trees": "^1.1.1",
"debug": "^2.2.0",
Expand Down
2 changes: 1 addition & 1 deletion tests/dummy-sass-addon/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {

options: {
cssModules: {
extension: 'scss',
extension: 'module.scss',
intermediateOutputPath: 'addon.scss',
postcssOptions: {
syntax: require('postcss-scss')
Expand Down

0 comments on commit 2f10008

Please sign in to comment.