Is webpack the tool that I need to pass several less files into one minified CSS file?
if so, I\'m not sure what I\'m doing wrong in the code below?
Is there a way of ou
You're almost there. Like you already did, you can get all your styling into one css file using ExtractTextPlugin
. To put your js and css into a different directories, you can just define a path in ExtractTextPlugin
or output.filename
that is relative to your output.path
. For example:
output: {
path: './assets',
filename: './javascripts/bundle/[name].js'
},
plugins: [
new ExtractTextPlugin("./stylesheets/bundle/[name].css")
]