Skip to content

Commit

Permalink
Merge pull request #183 from geospoc/fix/css-issue
Browse files Browse the repository at this point in the history
fix: css issue caused due to `sideEffects: false`
  • Loading branch information
vinayakkulkarni authored Oct 30, 2020
2 parents 2cc6aaa + aebccb3 commit 46bfab4
Show file tree
Hide file tree
Showing 5 changed files with 946 additions and 127 deletions.
4 changes: 2 additions & 2 deletions build/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import babel from '@rollup/plugin-babel';
import commonjs from '@rollup/plugin-commonjs';
import vue from 'rollup-plugin-vue';
import css from 'rollup-plugin-css-only';
import scss from 'rollup-plugin-scss';

export default [
// ESM build to be used with webpack/rollup.
Expand All @@ -19,7 +19,7 @@ export default [
}),
commonjs(),
vue({ css: false }),
css({ output: 'dist/v-mapbox.css' }),
scss({ output: 'dist/v-mapbox.css' }),
],
external: ['vue', 'mapbox-gl', 'map-promisified'],
},
Expand Down
7 changes: 6 additions & 1 deletion build/rollup.config.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import babel from '@rollup/plugin-babel';
import commonjs from '@rollup/plugin-commonjs';
import { terser } from 'rollup-plugin-terser';
import vue from 'rollup-plugin-vue';
import scss from 'rollup-plugin-scss';

export default {
input: 'src/index.js',
Expand All @@ -23,7 +24,11 @@ export default {
}),
commonjs(),
terser(),
vue(),
vue({ css: false }),
scss({
output: 'dist/v-mapbox.min.css',
outputStyle: 'compressed',
}),
],
external: ['vue', 'mapbox-gl', 'map-promisified'],
};
Loading

0 comments on commit 46bfab4

Please sign in to comment.