Get all platform unit tests to run
This commit is contained in:
1 parent
5544c57c37
commit
b8baae7c25
14 files changed
+114
-137
No files matched your search
@@ -1,22 +1,22 @@
|
||||
const webpack = require('webpack');
|
||||
const merge = require('webpack-merge');
|
||||
const path = require('path');
|
||||
const common = require('./webpack.common');
|
||||
const webpack = require("webpack");
|
||||
const merge = require("webpack-merge");
|
||||
const path = require("path");
|
||||
const common = require("./webpack.common");
|
||||
|
||||
const SRC_DIR = path.join(__dirname, '../src');
|
||||
const DIST_DIR = path.join(__dirname, '../dist');
|
||||
const INDEX = path.join(DIST_DIR, 'index.html');
|
||||
const SRC_DIR = path.join(__dirname, "../src");
|
||||
const DIST_DIR = path.join(__dirname, "../dist");
|
||||
const INDEX = path.join(DIST_DIR, "index.html");
|
||||
|
||||
module.exports = (env, argv) => {
|
||||
const commonConfig = common(env, argv);
|
||||
|
||||
return merge(commonConfig, {
|
||||
mode: 'development',
|
||||
devtool: 'cheap-module-source-map',
|
||||
mode: "development",
|
||||
devtool: "cheap-module-source-map",
|
||||
output: {
|
||||
path: DIST_DIR,
|
||||
publicPath: '/',
|
||||
filename: '[name].bundle.js',
|
||||
publicPath: "/",
|
||||
filename: "[name].bundle.js"
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
@@ -24,26 +24,26 @@ module.exports = (env, argv) => {
|
||||
test: /\.(gif|jp?g|png|svg|ico)$/i,
|
||||
use: [
|
||||
{
|
||||
loader: 'file-loader',
|
||||
loader: "file-loader",
|
||||
options: {
|
||||
name: '[path][name].[ext]',
|
||||
context: SRC_DIR,
|
||||
},
|
||||
},
|
||||
],
|
||||
name: "[path][name].[ext]",
|
||||
context: SRC_DIR
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
test: /\.(ttf|eot|woff|woff2)$/i,
|
||||
use: [
|
||||
{
|
||||
loader: 'file-loader',
|
||||
loader: "file-loader",
|
||||
options: {
|
||||
name: '[name].[ext]',
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
name: "[name].[ext]"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
plugins: [new webpack.HotModuleReplacementPlugin()],
|
||||
devServer: {
|
||||
@@ -52,11 +52,12 @@ module.exports = (env, argv) => {
|
||||
compress: false,
|
||||
// contentBase: DIST_DIR,
|
||||
open: true,
|
||||
port: 3001,
|
||||
port: 3000,
|
||||
writeToDisk: true,
|
||||
historyApiFallback: {
|
||||
index: '/',
|
||||
},
|
||||
},
|
||||
historyApiFallback: true
|
||||
// {
|
||||
// index: '/',
|
||||
// },
|
||||
}
|
||||
});
|
||||
};
|
||||
Reference in new issue
Block a user