mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2025-12-15 15:10:31 -08:00
chore: enable @zeit/webpack-asset-relocator-loader
This commit is contained in:
parent
9d46c4dd2c
commit
7dcf983aed
3 changed files with 2272 additions and 16 deletions
|
|
@ -16,17 +16,17 @@ module.exports = [
|
|||
test: /\.node$/,
|
||||
use: 'node-loader',
|
||||
},
|
||||
// {
|
||||
// test: /\.(m?js|node)$/,
|
||||
// parser: { amd: true },
|
||||
// use: {
|
||||
// loader: '@zeit/webpack-asset-relocator-loader',
|
||||
// options: {
|
||||
// outputAssetBase: 'native_modules',
|
||||
// emitDirnameAll: true,
|
||||
// },
|
||||
// },
|
||||
// },
|
||||
{
|
||||
test: /\.(m?js|node)$/,
|
||||
parser: { amd: true },
|
||||
use: {
|
||||
loader: '@zeit/webpack-asset-relocator-loader',
|
||||
options: {
|
||||
outputAssetBase: 'native_modules',
|
||||
emitDirnameAll: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
// used to load css from npm package, we use styled-components
|
||||
test: /\.css$/,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue