create a type declaration file for CSS modules
This commit is contained in:
parent
458875dabe
commit
ff8c1ed0cd
1 changed files with 3 additions and 0 deletions
|
|
@ -20,6 +20,9 @@ RUN npm install @rollup/rollup-linux-x64-musl
|
||||||
RUN npm install esbuild@0.21.5
|
RUN npm install esbuild@0.21.5
|
||||||
RUN npm install vite @vitejs/plugin-react --save-dev
|
RUN npm install vite @vitejs/plugin-react --save-dev
|
||||||
|
|
||||||
|
# Create type declarations for CSS modules
|
||||||
|
RUN echo "declare module '*.css'" > src/types.d.ts
|
||||||
|
|
||||||
# Copy source code and build
|
# Copy source code and build
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue