mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-03 21:08:18 +00:00
Restructure project directories (#333)
`/client/web` -> `/frontend` `/client/cli` -> *delete for now* `/client/native` -> *delete for now* `/core/editor` -> `/editor` `/core/document` -> `/graphene` `/core/renderer` -> `/charcoal` `/core/proc-macro` -> `/proc-macros` *(now plural)*
This commit is contained in:
parent
434695d578
commit
53ad105f57
239 changed files with 197 additions and 224 deletions
30
frontend/vue.config.js
Normal file
30
frontend/vue.config.js
Normal file
|
@ -0,0 +1,30 @@
|
|||
/* eslint-disable @typescript-eslint/no-var-requires */
|
||||
const WasmPackPlugin = require("@wasm-tool/wasm-pack-plugin");
|
||||
const path = require("path");
|
||||
|
||||
module.exports = {
|
||||
lintOnSave: "warning",
|
||||
chainWebpack: (config) => {
|
||||
// Rust wasm bindgen https://github.com/rustwasm/wasm-bindgen
|
||||
config
|
||||
.plugin("wasm-pack")
|
||||
.use(WasmPackPlugin)
|
||||
.init(
|
||||
(Plugin) =>
|
||||
new Plugin({
|
||||
crateDirectory: path.resolve(__dirname, "wasm"),
|
||||
watchDirectories: [
|
||||
path.resolve(__dirname, "../editor"),
|
||||
path.resolve(__dirname, "../graphene"),
|
||||
path.resolve(__dirname, "../charcoal"),
|
||||
path.resolve(__dirname, "../proc-macros"),
|
||||
],
|
||||
})
|
||||
)
|
||||
.end();
|
||||
|
||||
const svgRule = config.module.rule("svg");
|
||||
svgRule.uses.clear();
|
||||
svgRule.use("vue-loader").loader("vue-loader").end().use("vue-svg-loader").loader("vue-svg-loader");
|
||||
},
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue