a development bundle server tool for modern browser
lionocean / butterpack Goto Github PK
View Code? Open in Web Editor NEWa bundle tool of development server for modern browser
a bundle tool of development server for modern browser
if you import a module with none extname. Butterpack should judge where it is.
import lodash from "lodash"; // butterpack will load it from node_modules directory.
import Toast form "@/component/toast" // butterpack will replace @ with path in alias config, and complete path extname
// butterpack.config.js
export default {
alias: {
"@": "src"
},
fileExts: [".ts", ".tsx"]
}
butterpack will intercept local server request, and proxy it to aimed remote server, just like node-http-proxy!
spilt butterpack to core and cli packages.
butterpack will make require expressing compatible with import declaration
optimise plugin api, export all plugin hooks
add css plugin and sass plugin
add json plugin
if possiible, butterpack will automaic transform module(umd or amd) from npm into es module
butterpack will could resolve file path extname such as:
import { equal } from "utils"; // ext name is .ts
import icon from "icon"; // ext name is .png
import Count form "./Count" // ext name is .tsx
// butterpack.config.js
export default {
fileExts: [".ts", ".tsx", ".png"]
}
default ext name is .js
butterpack will could transform no-js(no .js extname) file to js code.And you could custom any loaders,
such as vue-loader, svelte-loader. ts-loader could transform .ts, .tsx, .jsx to js code.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.