when i note Postcss packaged the same code css.
no rem in my dist file
import path from 'path';
// import { terser } from 'rollup-plugin-terser';
import Resolve from 'rollup-plugin-node-resolve';
import Commonjs from 'rollup-plugin-commonjs';
import Babel from 'rollup-plugin-babel';
import VuePlugin from 'rollup-plugin-vue';
import Postcss from 'rollup-plugin-postcss';
import autoprefixer from 'autoprefixer';
import pxtorem from 'postcss-pxtorem';
export default {
input: 'src/index.js',
output: {
file: path.resolve(__dirname, './lib', 'index.js'),
format: 'cjs',
name: 'call-app'
},
external: ['vue', 'callapp-lib'],
plugins: [
// terser()
Postcss({
plugins: [
autoprefixer({
browsers: ['Android >= 4.0', 'iOS >= 7']
}),
pxtorem({
rootValue: 37.5,
propList: ['*']
})
],
sourceMap: false,
extensions: ['.css', '.less']
}),
VuePlugin(),
Babel({
runtimeHelpers: true,
// sourceMap: false,
extensions: ['.js', '.jsx', '.es6', '.es', '.mjs', '.vue']
}),
Resolve(),
Commonjs()
]
};
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too