forked from mystiq/hydrogen-web
WIP
This commit is contained in:
parent
363cd5b046
commit
2d2005934a
1 changed files with 7 additions and 6 deletions
|
@ -1,5 +1,4 @@
|
||||||
const cssvariables = require("postcss-css-variables");
|
const cssvariables = require("postcss-css-variables");
|
||||||
const autoprefixer = require("autoprefixer");
|
|
||||||
const flexbugsFixes = require("postcss-flexbugs-fixes");
|
const flexbugsFixes = require("postcss-flexbugs-fixes");
|
||||||
|
|
||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
|
@ -37,15 +36,16 @@ export default {
|
||||||
},
|
},
|
||||||
build: {
|
build: {
|
||||||
outDir: "../target",
|
outDir: "../target",
|
||||||
|
emptyOutDir: true,
|
||||||
|
minify: false,
|
||||||
|
sourcemap: false,
|
||||||
|
assetsInlineLimit: 0,
|
||||||
|
polyfillModulePreload: false,
|
||||||
lib: {
|
lib: {
|
||||||
entry: "lib.ts",
|
entry: "lib.ts",
|
||||||
name: "hydrogen",
|
name: "hydrogen",
|
||||||
formats: ["cjs", "es"]
|
formats: ["cjs", "es"]
|
||||||
},
|
},
|
||||||
emptyOutDir: true,
|
|
||||||
sourcemap: false,
|
|
||||||
assetsInlineLimit: 0,
|
|
||||||
polyfillModulePreload: false,
|
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
external: id => id.startsWith(modulesDir) || id.startsWith(mocksDir) || id.startsWith(fixturesDir),
|
external: id => id.startsWith(modulesDir) || id.startsWith(mocksDir) || id.startsWith(fixturesDir),
|
||||||
output: {
|
output: {
|
||||||
|
@ -60,11 +60,12 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
chunkFileNames: `[format]/[name].js`,
|
chunkFileNames: `[format]/[name].js`,
|
||||||
|
// preserveModules: true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
define: {
|
define: {
|
||||||
"HYDROGEN_VERSION": JSON.stringify(version)
|
"DEFINE_VERSION": JSON.stringify(version)
|
||||||
},
|
},
|
||||||
css: {
|
css: {
|
||||||
postcss: {
|
postcss: {
|
||||||
|
|
Loading…
Reference in a new issue