You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nikita-tokarch-uk/webpack.config.js

32 lines
598 B

const path = require('path');
module.exports = {
entry: './web/index.js',
output: {
clean: true,
filename: 'js-bin/app.js',
path: path.resolve(__dirname, 'out'),
},
module: {
rules: [
{
test: /\.(s?css)$/,
use: [{
loader: 'style-loader'
}, {
loader: 'css-loader'
}, {
loader: 'postcss-loader',
options: {
postcssOptions: {
plugins: () => require('autoprefixer'),
}
}
}, {
loader: 'sass-loader'
}]
},
],
},
};