mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-23 18:25:30 +00:00
Try disableing postcss when running vite
This commit is contained in:
parent
de43d73582
commit
b82f6ff32e
2 changed files with 7 additions and 4847 deletions
File diff suppressed because one or more lines are too long
|
|
@ -41,10 +41,12 @@ export function getPlugins({ minify, outputFile, vite }) {
|
|||
// causes it to try to parse the js version as JSON.
|
||||
vite ? null : json(),
|
||||
// https://www.npmjs.com/package/rollup-plugin-import-css
|
||||
postcss({
|
||||
inject: false,
|
||||
plugins: [atImport, postcssOptimizeDataUriPngs],
|
||||
}),
|
||||
vite
|
||||
? null
|
||||
: postcss({
|
||||
inject: false,
|
||||
plugins: [atImport, postcssOptimizeDataUriPngs],
|
||||
}),
|
||||
// Without this we get: Error: 'default' is not exported by node_modules/react/index.js
|
||||
// because react-redux import react as if it were an es6 module, but it is not.
|
||||
commonjs(),
|
||||
|
|
@ -52,7 +54,7 @@ export function getPlugins({ minify, outputFile, vite }) {
|
|||
babel({ babelHelpers: "bundled" }),
|
||||
minify ? terser() : null,
|
||||
// Generate a report so we can see how our bundle size is spent
|
||||
visualizer({ filename: `./${outputFile}.html` }),
|
||||
vite ? null : visualizer({ filename: `./${outputFile}.html` }),
|
||||
].filter(Boolean);
|
||||
|
||||
return plugins;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue