Skip to content
This repository has been archived by the owner on Feb 27, 2019. It is now read-only.

Commit

Permalink
Set devtool conf with 'source-map'
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaspayot committed Sep 15, 2016
1 parent 7a7d847 commit 04809fe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion generators/app/conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = function webpackConf(options) {

if (options.dist === false) {
conf.debug = true;
conf.devtool = 'cheap-module-eval-source-map';
conf.devtool = 'source-map';
if (options.test === false) {
conf.output = {
path: lit`path.join(process.cwd(), conf.paths.tmp)`,
Expand Down
16 changes: 8 additions & 8 deletions test/app/conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ test('conf dev with react/css/babel', t => {
],
postcss: lit`() => [autoprefixer]`,
debug: true,
devtool: 'cheap-module-eval-source-map',
devtool: 'source-map',
output: {
path: lit`path.join(process.cwd(), conf.paths.tmp)`,
filename: 'index.js'
Expand Down Expand Up @@ -100,7 +100,7 @@ test('conf dev with react/scss/babel', t => {
],
postcss: lit`() => [autoprefixer]`,
debug: true,
devtool: 'cheap-module-eval-source-map',
devtool: 'source-map',
output: {
path: lit`path.join(process.cwd(), conf.paths.tmp)`,
filename: 'index.js'
Expand Down Expand Up @@ -147,7 +147,7 @@ test('conf dev with react/less/babel', t => {
],
postcss: lit`() => [autoprefixer]`,
debug: true,
devtool: 'cheap-module-eval-source-map',
devtool: 'source-map',
output: {
path: lit`path.join(process.cwd(), conf.paths.tmp)`,
filename: 'index.js'
Expand Down Expand Up @@ -182,7 +182,7 @@ test('conf test with react/css/typescript', t => {
]
},
debug: true,
devtool: 'cheap-module-eval-source-map',
devtool: 'source-map',
resolve: {
extensions: ['', '.webpack.js', '.web.js', '.js', '.ts', '.tsx']
},
Expand Down Expand Up @@ -543,7 +543,7 @@ test('conf with react/css/babel', t => {
]
},
debug: true,
devtool: 'cheap-module-eval-source-map',
devtool: 'source-map',
externals: {
'react/lib/ExecutionEnvironment': true,
'react/lib/ReactContext': true
Expand All @@ -564,7 +564,7 @@ test('conf with angular2/css/babel', t => {
const expected = merge([{}, conf, {
plugins: [],
debug: true,
devtool: 'cheap-module-eval-source-map',
devtool: 'source-map',
module: {
loaders: [
{
Expand Down Expand Up @@ -675,7 +675,7 @@ test('conf with react/css/typescript', t => {
],
postcss: lit`() => [autoprefixer]`,
debug: true,
devtool: 'cheap-module-eval-source-map',
devtool: 'source-map',
output: {
path: lit`path.join(process.cwd(), conf.paths.tmp)`,
filename: 'index.js'
Expand Down Expand Up @@ -710,7 +710,7 @@ test('conf with vue/css/babel', t => {
const expected = merge([{}, conf, {
plugins: [],
debug: true,
devtool: 'cheap-module-eval-source-map',
devtool: 'source-map',
module: {
loaders: [
{
Expand Down

0 comments on commit 04809fe

Please sign in to comment.