Merge pull request #490 from h3poteto/fix/build
Fix buil setting for locales
This commit is contained in:
commit
192b491e0f
|
@ -6,6 +6,7 @@ const path = require('path')
|
||||||
const { dependencies } = require('../package.json')
|
const { dependencies } = require('../package.json')
|
||||||
const webpack = require('webpack')
|
const webpack = require('webpack')
|
||||||
|
|
||||||
|
const CopyWebpackPlugin = require('copy-webpack-plugin')
|
||||||
const MinifyPlugin = require('babel-minify-webpack-plugin')
|
const MinifyPlugin = require('babel-minify-webpack-plugin')
|
||||||
|
|
||||||
let mainConfig = {
|
let mainConfig = {
|
||||||
|
@ -49,7 +50,14 @@ let mainConfig = {
|
||||||
path: path.join(__dirname, '../dist/electron')
|
path: path.join(__dirname, '../dist/electron')
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new webpack.NoEmitOnErrorsPlugin()
|
new webpack.NoEmitOnErrorsPlugin(),
|
||||||
|
new CopyWebpackPlugin([
|
||||||
|
{
|
||||||
|
from: path.join(__dirname, '../src/config/locales'),
|
||||||
|
to: path.join(__dirname, '../dist/electron/locales'),
|
||||||
|
ignore: ['.*', '*~']
|
||||||
|
}
|
||||||
|
])
|
||||||
],
|
],
|
||||||
resolve: {
|
resolve: {
|
||||||
extensions: ['.js', '.json', '.node']
|
extensions: ['.js', '.json', '.node']
|
||||||
|
|
Loading…
Reference in New Issue