Fix copied source not building
This commit is contained in:
parent
52f55efee2
commit
35fd136c2a
|
@ -135,6 +135,10 @@ module.exports = [
|
||||||
from: `src`,
|
from: `src`,
|
||||||
to: path.resolve(__dirname, `${config.tempDirectory}/copiedSource/src/`)
|
to: path.resolve(__dirname, `${config.tempDirectory}/copiedSource/src/`)
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
from: `babel.config.js`,
|
||||||
|
to: path.resolve(__dirname, `${config.tempDirectory}/copiedSource/babel.config.js`)
|
||||||
|
},
|
||||||
{
|
{
|
||||||
from: `config.json`,
|
from: `config.json`,
|
||||||
to: path.resolve(__dirname, `${config.tempDirectory}/copiedSource/config.json`)
|
to: path.resolve(__dirname, `${config.tempDirectory}/copiedSource/config.json`)
|
||||||
|
@ -147,6 +151,10 @@ module.exports = [
|
||||||
from: `package.json`,
|
from: `package.json`,
|
||||||
to: path.resolve(__dirname, `${config.tempDirectory}/copiedSource/package.json`)
|
to: path.resolve(__dirname, `${config.tempDirectory}/copiedSource/package.json`)
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
from: `package-lock.json`,
|
||||||
|
to: path.resolve(__dirname, `${config.tempDirectory}/copiedSource/package-lock.json`)
|
||||||
|
},
|
||||||
{
|
{
|
||||||
from: `README.md`,
|
from: `README.md`,
|
||||||
to: path.resolve(__dirname, `${config.tempDirectory}/copiedSource/README.md`)
|
to: path.resolve(__dirname, `${config.tempDirectory}/copiedSource/README.md`)
|
||||||
|
@ -164,7 +172,7 @@ module.exports = [
|
||||||
to: path.resolve(__dirname, `${config.tempDirectory}/copiedSource/webpack.utils.js`)
|
to: path.resolve(__dirname, `${config.tempDirectory}/copiedSource/webpack.utils.js`)
|
||||||
}
|
}
|
||||||
]),
|
]),
|
||||||
getZipPlugin(`copiedSource-${config.extName}-${ffExtVersion}`, config.distDirectory)
|
getZipPlugin(`copiedSource-${config.extName}-${ffExtVersion}`, config.distDirectory, "other/")
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
|
@ -73,7 +73,7 @@ const getFirefoxCopyPlugins = (browserDir, outputDir = "dev", sourceDir = "src")
|
||||||
])
|
])
|
||||||
];
|
];
|
||||||
|
|
||||||
const getZipPlugin = (browserDir, outputDir = "dist") =>
|
const getZipPlugin = (browserDir, outputDir = "dist", exclude = "") =>
|
||||||
new ZipPlugin({
|
new ZipPlugin({
|
||||||
path: path.resolve(__dirname, `${outputDir}`),
|
path: path.resolve(__dirname, `${outputDir}`),
|
||||||
filename: browserDir,
|
filename: browserDir,
|
||||||
|
@ -86,7 +86,8 @@ const getZipPlugin = (browserDir, outputDir = "dist") =>
|
||||||
},
|
},
|
||||||
zipOptions: {
|
zipOptions: {
|
||||||
forceZip64Format: false
|
forceZip64Format: false
|
||||||
}
|
},
|
||||||
|
exclude: exclude
|
||||||
});
|
});
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
Loading…
Reference in a new issue