()
| 51 | }); |
| 52 | |
| 53 | async function buildStyle() { |
| 54 | const variablesCss = await readFile('src/_variables.css'); |
| 55 | const buttonCss = await readFile('src/button.css'); |
| 56 | const modalCss = await readFile('src/modal.css'); |
| 57 | |
| 58 | const variablesOutput = await postcss([cssnano]).process(variablesCss, { |
| 59 | from: undefined, |
| 60 | }); |
| 61 | const buttonOutput = await postcss([cssnano]).process(buttonCss, { |
| 62 | from: undefined, |
| 63 | }); |
| 64 | const modalOutput = await postcss([cssnano]).process(modalCss, { |
| 65 | from: undefined, |
| 66 | }); |
| 67 | |
| 68 | fs.writeFile( |
| 69 | 'dist/style.css', |
| 70 | [getBundleBanner(pkg), [variablesOutput.css, buttonOutput.css, modalOutput.css].join('')].join('\n'), |
| 71 | () => true, |
| 72 | ); |
| 73 | |
| 74 | fs.writeFile( |
| 75 | 'dist/style.scss', |
| 76 | [getBundleBanner(pkg), [variablesOutput.css, buttonOutput.css, modalOutput.css].join('')].join('\n'), |
| 77 | () => true, |
| 78 | ); |
| 79 | } |
| 80 | |
| 81 | async function buildSidepanel() { |
| 82 | const variablesCss = await readFile('src/_variables.css'); |
no test coverage detected