Skip to content

Commit

Permalink
Adjust source-map tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnns committed Sep 29, 2015
1 parent b1551b2 commit 2add99f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@
},
"devDependencies": {
"bootstrap-sass": "^3.3.5",
"css-loader": "^0.15.6",
"css-loader": "^0.19.0",
"enhanced-require": "^0.5.0-beta6",
"extract-text-webpack-plugin": "^0.8.2",
"file-loader": "^0.8.4",
"jshint": "^2.8.0",
"mocha": "^2.0.1",
Expand Down
2 changes: 1 addition & 1 deletion test/sourceMap/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<title></title>
<meta charset="utf-8"/>
<link href="/styles.sourcemap.css" type="text/css" rel="stylesheet">
<script async src="/bundle.sourcemap.js"></script>
</head>
<body>
<h1 class="another-scss-module box">Open the developer tools, dude!</h1>
Expand Down
11 changes: 2 additions & 9 deletions test/sourceMap/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use strict';

var path = require('path');
var ExtractTextPlugin = require('extract-text-webpack-plugin');

var pathToSassLoader = path.resolve(__dirname, '../../index.js');

Expand All @@ -16,14 +15,8 @@ module.exports = {
loaders: [
{
test: /\.scss$/,
loader: ExtractTextPlugin.extract(
'css-loader?sourceMap!' +
pathToSassLoader + '?sourceMap'
)
loaders: ['style', 'css-loader?sourceMap', pathToSassLoader + '?sourceMap']
}
]
},
plugins: [
new ExtractTextPlugin('styles.sourcemap.css')
]
}
};

0 comments on commit 2add99f

Please sign in to comment.