mirror of
https://github.com/trezor/trezor-wallet
synced 2025-06-26 01:42:35 +00:00
dont run file loader on locales jsons
This commit is contained in:
parent
3217517050
commit
241ba37f44
@ -13,6 +13,7 @@ import {
|
|||||||
SRC,
|
SRC,
|
||||||
BUILD,
|
BUILD,
|
||||||
PUBLIC,
|
PUBLIC,
|
||||||
|
TRANSLATIONS,
|
||||||
PORT,
|
PORT,
|
||||||
} from './constants';
|
} from './constants';
|
||||||
|
|
||||||
@ -83,7 +84,7 @@ module.exports = {
|
|||||||
{
|
{
|
||||||
type: 'javascript/auto',
|
type: 'javascript/auto',
|
||||||
test: /\.json/,
|
test: /\.json/,
|
||||||
exclude: /(node_modules)/,
|
exclude: [/(node_modules)/, TRANSLATIONS],
|
||||||
loader: 'file-loader',
|
loader: 'file-loader',
|
||||||
options: {
|
options: {
|
||||||
outputPath: './data',
|
outputPath: './data',
|
||||||
|
@ -3,7 +3,9 @@ import GitRevisionPlugin from 'git-revision-webpack-plugin';
|
|||||||
import HtmlWebpackPlugin from 'html-webpack-plugin';
|
import HtmlWebpackPlugin from 'html-webpack-plugin';
|
||||||
import FriendlyErrorsWebpackPlugin from 'friendly-errors-webpack-plugin';
|
import FriendlyErrorsWebpackPlugin from 'friendly-errors-webpack-plugin';
|
||||||
import CopyWebpackPlugin from 'copy-webpack-plugin';
|
import CopyWebpackPlugin from 'copy-webpack-plugin';
|
||||||
import { SRC, BUILD, PUBLIC } from './constants';
|
import {
|
||||||
|
SRC, BUILD, PUBLIC, TRANSLATIONS,
|
||||||
|
} from './constants';
|
||||||
|
|
||||||
const gitRevisionPlugin = new GitRevisionPlugin();
|
const gitRevisionPlugin = new GitRevisionPlugin();
|
||||||
|
|
||||||
@ -44,7 +46,7 @@ module.exports = {
|
|||||||
{
|
{
|
||||||
type: 'javascript/auto',
|
type: 'javascript/auto',
|
||||||
test: /\.json/,
|
test: /\.json/,
|
||||||
exclude: /(node_modules)/,
|
exclude: [/(node_modules)/, TRANSLATIONS],
|
||||||
loader: 'file-loader',
|
loader: 'file-loader',
|
||||||
options: {
|
options: {
|
||||||
outputPath: './data',
|
outputPath: './data',
|
||||||
|
Loading…
Reference in New Issue
Block a user