Comments (2)
Hey @jessmchang,
There aren't code.js or code.ts files in src
dir.
What we have is:
src/app/index.tsx
-- bundled into -->dist/ui.js
+dist.ui.html
src/plugin/controller.ts
--> bundled into -->dist/code.js
.
If you prefer using different names you can change them at the webpack file, under entry
, and at manifest.json as well.
Not sure why you see code
files in src but if you'll look at the files in this repo you can see it doesn't exist.
I hope that helps?
from figma-plugin-react-template.
ohh weird. i think some of my files from the figma react plugin persisted somehow. works great now, thanks!
from figma-plugin-react-template.
Related Issues (9)
- [Off topic] Do you know how to use prettier (not as dev deps) on figma runtime with webpack? HOT 1
- update manifest.json HOT 1
- Images not loading from assets folder HOT 3
- cannot import js functions to controller.ts HOT 1
- need to specify publicPath? HOT 2
- onmessage on App.tsx won't fire if plugin is closed immediately HOT 2
- Having a specific licence would be useful HOT 2
- unable to change width and height of the pop up window of the plugin
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from figma-plugin-react-template.