Skip to content

Commit

Permalink
Don't make sourcemaps inline
Browse files Browse the repository at this point in the history
I added inline source maps as a quick fix, but inline sourcemaps result in a really long line which makes the file almost unworkeable in most text processors.

So this is the real source map fix.
  • Loading branch information
jauco committed Mar 12, 2014
1 parent 526734a commit 9602511
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/clearDir.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var glob = require("glob");

module.exports = function clearDir(path, cb) {
var files = glob.sync(path + "/**/*.js");
var files = glob.sync(path + "/**/*.{js,js.map}");
var total = files.length;
if (total === 0) {
cb();
Expand Down
2 changes: 1 addition & 1 deletion src/lib/createTestFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = function createTestFile(filenames, karmaPath, cb) {
{test: /\.json$/, loader: require.resolve("json-loader")}
]
},
devtool: "#inline-source-map",
devtool: "#source-map"
}, require("./handleWebpackResult")(cb));
} catch (e) {
console.log(e, e.stack);
Expand Down
3 changes: 2 additions & 1 deletion src/lib/launchKarma.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ function launchKarma(persistent, karmaPath, options, cb) {
basePath: karmaPath,
frameworks: ["jasmine"].concat(options.frameworks || []),
files: [
"*.js"
"*.js",
{pattern: '*.js.map', watched: false, included: false, served: true}
],
proxies: options.proxies || {},
preprocessors: options.preprocessors || {},
Expand Down

0 comments on commit 9602511

Please sign in to comment.