Answer the question
In order to leave comments, you need to log in
Why doesn't webpack-dev-server create the boundle specified in the output object?
Hello. Here is my webpack config:
var webpack = require("webpack");
var ExtractTextPlugin = require("extract-text-webpack-plugin");
module.exports = {
//watch: true,
context: __dirname + '/frontend',
entry: {
main: './main',
styles: './styles/app'
},
output: {
path: __dirname + '/public',
publicPath: '/',
filename: '[name].js'
},
resolve: {
extensions: ['.js', '.less']
},
module: {
rules: [
{
test: /\.less$/,
use: ExtractTextPlugin.extract({
fallback: 'style-loader',
use: ['css-loader', 'less-loader']
})
}
]
},
plugins: [
new ExtractTextPlugin('styles.css'),
new webpack.HotModuleReplacementPlugin()
],
devServer: {
contentBase: __dirname + '/public',
hot: true
}
};
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