This repository was archived by the owner on May 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Support for autoprefixer? #28
Copy link
Copy link
Open
Description
Hey,
Webpack 2 seems to have removed the postcss section and adding autoprefixer seems difficult. I tried adding it like this to my webpack.config.ts file (fetched from the aurelia skeleton-typescript-webpack):
....
var loaderOptionsPlugin = require('webpack/lib/LoaderOptionsPlugin');
var autoprefixer = require('autoprefixer');
....
plugins: [
new loaderOptionsPlugin({
options: {
postcss: [
autoprefixer()
]
}
})
],
...
html(),
css({ filename: 'styles.css', allChunks: true, sourceMap: false,
additionalLoaders: ['postcss'] }),
sass({ filename: 'styles.css', allChunks: true, sourceMap: false,
additionalLoaders: ['postcss'] }),
json(),
fontAndImages(),
globalBluebird(),
...
First I imported loaderOptionsPlugin and autoprefixer, then I loaded autoprefixer as a postcss option to loaderOptionsPlugin and finally I added additionaloaders (postcss) to my css and sass @easy-webpack modules.
This did not work. Any ideas?
Or maybe some kind soul would like to write @easy-webpack/config-autoprefixer? :)
Metadata
Metadata
Assignees
Labels
No labels