mirror of
https://github.com/mapillary/mapillary-js.git
synced 2026-01-18 13:56:53 +00:00
Migrate to Rollup. Emit umd, minified umd, module, type declarations and source maps. Work around problems with Falcor by using virtual module. Migrate to Jest. Run tests in with CommonJS modules becasue ES6 is not supported. Work around dependency problems by bootstrap to ensure they are not loaded during test. Remove all unused dependencies. Create state transition matrix to avoid circular dependencies. chore: tsc and rollup watch build chore: incremental watch build Remove unused dependencies. chore: use existing type packages chore: mock favicon chore: improve watch build chore: fix styles build chore: specific commonjs build for tests chore: reset spec files refactor: explicit state transition matrix chore: make src commands work chore: working unit tests and lib chore: add serve docs script chore: remove unused bundle config chore: refactor rollup config to avoid duplication fix: falcor imports fix: transition from source to target Fixes #87 Fixes #100 Fixes #159 Fixes #208
23 lines
653 B
JavaScript
23 lines
653 B
JavaScript
module.exports = {
|
|
plugins: [
|
|
require('autoprefixer'),
|
|
require('postcss-inline-svg')({
|
|
paths: ['./styles'],
|
|
encode: svg => Buffer.from(svg).toString('base64'),
|
|
transform: encoded => `"data:image/svg+xml;base64,${encoded}"`
|
|
}),
|
|
require('cssnano')({
|
|
preset: ['default', {
|
|
normalizeWhitespace: false,
|
|
svgo: {
|
|
plugins: [{
|
|
removeViewBox: false
|
|
}, {
|
|
removeDimensions: false
|
|
}],
|
|
},
|
|
}],
|
|
}),
|
|
],
|
|
};
|