initial commit
This commit is contained in:
28
webpack.config.js
Normal file
28
webpack.config.js
Normal file
@@ -0,0 +1,28 @@
|
||||
module.exports = {
|
||||
test: /\.(scss)$/,
|
||||
use: [{
|
||||
// inject CSS to page
|
||||
loader: 'style-loader'
|
||||
}, {
|
||||
// translates CSS into CommonJS modules
|
||||
loader: 'css-loader'
|
||||
}, {
|
||||
// Run postcss actions
|
||||
loader: 'postcss-loader',
|
||||
options: {
|
||||
// `postcssOptions` is needed for postcss 8.x;
|
||||
// if you use postcss 7.x skip the key
|
||||
postcssOptions: {
|
||||
// postcss plugins, can be exported to postcss.config.js
|
||||
plugins: function () {
|
||||
return [
|
||||
require('autoprefixer')
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
// compiles Sass to CSS
|
||||
loader: 'sass-loader'
|
||||
}]
|
||||
}
|
Reference in New Issue
Block a user