mirror of
https://github.com/logos-messaging/js-rln.git
synced 2026-01-07 16:13:07 +00:00
add output folder
This commit is contained in:
parent
e6c84dc573
commit
f5e93d9672
@ -1,9 +1,14 @@
|
|||||||
|
const path = require("path");
|
||||||
const webpack = require("webpack");
|
const webpack = require("webpack");
|
||||||
const playwright = require('playwright');
|
const playwright = require('playwright');
|
||||||
|
|
||||||
process.env.CHROME_BIN = playwright.chromium.executablePath();
|
process.env.CHROME_BIN = playwright.chromium.executablePath();
|
||||||
process.env.FIREFOX_BIN = playwright.firefox.executablePath();
|
process.env.FIREFOX_BIN = playwright.firefox.executablePath();
|
||||||
|
|
||||||
|
const output = {
|
||||||
|
path: path.join(__dirname, "dist"),
|
||||||
|
};
|
||||||
|
|
||||||
module.exports = function (config) {
|
module.exports = function (config) {
|
||||||
config.set({
|
config.set({
|
||||||
frameworks: ["webpack", "mocha"],
|
frameworks: ["webpack", "mocha"],
|
||||||
@ -15,7 +20,7 @@ module.exports = function (config) {
|
|||||||
files: [
|
files: [
|
||||||
"src/**/!(node).spec.ts",
|
"src/**/!(node).spec.ts",
|
||||||
{
|
{
|
||||||
pattern: `src/**/*`,
|
pattern: `${output.path}/**/*`,
|
||||||
watched: false,
|
watched: false,
|
||||||
included: false,
|
included: false,
|
||||||
served: true,
|
served: true,
|
||||||
@ -34,6 +39,7 @@ module.exports = function (config) {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
webpack: {
|
webpack: {
|
||||||
|
output,
|
||||||
mode: "development",
|
mode: "development",
|
||||||
module: {
|
module: {
|
||||||
rules: [{
|
rules: [{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user