Webpack build failed but no errors printed
up vote
0
down vote
favorite
I am compiling webpack
with node
.
Running the simple webpack(webpackconfig).run((err,stats) =>{...
.
Now the thing is that my code has errors, but when webpack finishes the err
object is empty and the stats.toJson().hasErrors
is undefined. because i use NoErrorsPlugin
the bundle is not created... but my problem is that i don't have notification on the console.
My webpack config is something like:
import webpack from 'webpack';
import path from 'path';
import ExtractTextPlugin from 'extract-text-webpack-plugin';
export default {
entry: ['babel-polyfill', 'fetch-polyfill', './src/index'],
target: 'web',
output: {
path: __dirname + '/dist',
publicPath: '/',
filename: 'bundle.js'
},
devServer: {
contentBase: './dist'
},
plugins: [
new webpack.optimize.OccurenceOrderPlugin(),
new ExtractTextPlugin('styles.css'),
new webpack.optimize.DedupePlugin(),
new webpack.IgnorePlugin(/^./locale$/, [/moment$/]),
new webpack.NoErrorsPlugin(),
],
module: {
loaders: [
]
},
node: {
fs: "empty",
child_process: 'empty',
}
};
javascript webpack
add a comment |
up vote
0
down vote
favorite
I am compiling webpack
with node
.
Running the simple webpack(webpackconfig).run((err,stats) =>{...
.
Now the thing is that my code has errors, but when webpack finishes the err
object is empty and the stats.toJson().hasErrors
is undefined. because i use NoErrorsPlugin
the bundle is not created... but my problem is that i don't have notification on the console.
My webpack config is something like:
import webpack from 'webpack';
import path from 'path';
import ExtractTextPlugin from 'extract-text-webpack-plugin';
export default {
entry: ['babel-polyfill', 'fetch-polyfill', './src/index'],
target: 'web',
output: {
path: __dirname + '/dist',
publicPath: '/',
filename: 'bundle.js'
},
devServer: {
contentBase: './dist'
},
plugins: [
new webpack.optimize.OccurenceOrderPlugin(),
new ExtractTextPlugin('styles.css'),
new webpack.optimize.DedupePlugin(),
new webpack.IgnorePlugin(/^./locale$/, [/moment$/]),
new webpack.NoErrorsPlugin(),
],
module: {
loaders: [
]
},
node: {
fs: "empty",
child_process: 'empty',
}
};
javascript webpack
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am compiling webpack
with node
.
Running the simple webpack(webpackconfig).run((err,stats) =>{...
.
Now the thing is that my code has errors, but when webpack finishes the err
object is empty and the stats.toJson().hasErrors
is undefined. because i use NoErrorsPlugin
the bundle is not created... but my problem is that i don't have notification on the console.
My webpack config is something like:
import webpack from 'webpack';
import path from 'path';
import ExtractTextPlugin from 'extract-text-webpack-plugin';
export default {
entry: ['babel-polyfill', 'fetch-polyfill', './src/index'],
target: 'web',
output: {
path: __dirname + '/dist',
publicPath: '/',
filename: 'bundle.js'
},
devServer: {
contentBase: './dist'
},
plugins: [
new webpack.optimize.OccurenceOrderPlugin(),
new ExtractTextPlugin('styles.css'),
new webpack.optimize.DedupePlugin(),
new webpack.IgnorePlugin(/^./locale$/, [/moment$/]),
new webpack.NoErrorsPlugin(),
],
module: {
loaders: [
]
},
node: {
fs: "empty",
child_process: 'empty',
}
};
javascript webpack
I am compiling webpack
with node
.
Running the simple webpack(webpackconfig).run((err,stats) =>{...
.
Now the thing is that my code has errors, but when webpack finishes the err
object is empty and the stats.toJson().hasErrors
is undefined. because i use NoErrorsPlugin
the bundle is not created... but my problem is that i don't have notification on the console.
My webpack config is something like:
import webpack from 'webpack';
import path from 'path';
import ExtractTextPlugin from 'extract-text-webpack-plugin';
export default {
entry: ['babel-polyfill', 'fetch-polyfill', './src/index'],
target: 'web',
output: {
path: __dirname + '/dist',
publicPath: '/',
filename: 'bundle.js'
},
devServer: {
contentBase: './dist'
},
plugins: [
new webpack.optimize.OccurenceOrderPlugin(),
new ExtractTextPlugin('styles.css'),
new webpack.optimize.DedupePlugin(),
new webpack.IgnorePlugin(/^./locale$/, [/moment$/]),
new webpack.NoErrorsPlugin(),
],
module: {
loaders: [
]
},
node: {
fs: "empty",
child_process: 'empty',
}
};
javascript webpack
javascript webpack
asked Nov 4 at 9:55
omriman12
7401232
7401232
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53139560%2fwebpack-build-failed-but-no-errors-printed%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password