Answer the question
In order to leave comments, you need to log in
Why doesn't webpack-dev-server run babel-loader?
I'm trying to set up Webpack-dev-server and ran into one problem - it doesn't run babel-loader.
Below are all my dependencies
"devDependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-preset-env": "^1.6.1",
"babel-register": "^6.26.0",
"jshint": "^2.9.5",
"jshint-loader": "^0.8.4",
"node-libs-browser": "^2.1.0",
"webpack": "^3.11.0",
"webpack-dev-server": "^2.11.1"
},
module.exports = {
entry: './src/app.js',
output: {
filename: 'app.js',
path: path.resolve(__dirname, 'dist')
},
module: {
loaders: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'jshint-loader'
},
{
test: /\.js$/,
loader: "babel-loader",
exclude: /node_modules/,
query: {
presets:
}
}
]
},
stats: {
colors: true
},
devtool: 'source-map'
};
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question