Answer the question
In order to leave comments, you need to log in
Where does 'extract-text-webpack-plugin' save files?
Guys
here is the code:
var ExtractTextPlugin = require('extract-text-webpack-plugin');
module.exports = {
entry: './app.js',
output: {
filename: "bundle.js"
},
module: {
loaders: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader'
},
{
test: /\.styl$/,
loader: ExtractTextPlugin.extract({
fallback: "style-loader",
use: ["css-loader", "stylus-loader"],
publicPath: '/css'
})
}
]
},
plugins: [
new ExtractTextPlugin('bundle.css')
]
};
Answer the question
In order to leave comments, you need to log in
Forgot to specify path:
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'bundle.js'
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question