Dev: Move webpack config to script folder
This commit is contained in:
@@ -4,8 +4,8 @@
|
|||||||
"description": "Console for Mobile Browsers",
|
"description": "Console for Mobile Browsers",
|
||||||
"main": "eruda.js",
|
"main": "eruda.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"release": "webpack && webpack -p --config script/release.js",
|
"release": "webpack --config script/webpack.dev.js && webpack -p --config script/webpack.release.js",
|
||||||
"dev": "webpack-dev-server",
|
"dev": "webpack-dev-server --config script/webpack.dev.js",
|
||||||
"cpTestLib": "script/cpTestLib.sh",
|
"cpTestLib": "script/cpTestLib.sh",
|
||||||
"utilDoc": "eustia doc src/lib/util.js -f md -o doc/Util_Api.md -t \"Eruda Util Documentation\""
|
"utilDoc": "eustia doc src/lib/util.js -f md -o doc/Util_Api.md -t \"Eruda Util Documentation\""
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
var autoprefixer = require('autoprefixer'),
|
var autoprefixer = require('autoprefixer'),
|
||||||
classPrefix = require('postcss-class-prefix'),
|
classPrefix = require('postcss-class-prefix'),
|
||||||
webpack = require('webpack'),
|
webpack = require('webpack'),
|
||||||
pkg = require('./package.json'),
|
pkg = require('../package.json'),
|
||||||
path = require('path');
|
path = require('path');
|
||||||
|
|
||||||
var nodeModDir = path.resolve('./node_modules/') + '/',
|
var nodeModDir = path.resolve('./node_modules/') + '/',
|
||||||
@@ -15,7 +15,7 @@ module.exports = {
|
|||||||
port: 3000
|
port: 3000
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
path: __dirname,
|
path: path.resolve(__dirname, '../'),
|
||||||
publicPath: "/assets/",
|
publicPath: "/assets/",
|
||||||
filename: 'eruda.js',
|
filename: 'eruda.js',
|
||||||
library: ['eruda'],
|
library: ['eruda'],
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
var webpack = require('webpack');
|
var webpack = require('webpack');
|
||||||
|
|
||||||
exports = require('./../webpack.config');
|
exports = require('./webpack.dev');
|
||||||
|
|
||||||
exports.output.filename = 'eruda.min.js';
|
exports.output.filename = 'eruda.min.js';
|
||||||
exports.devtool = false;
|
exports.devtool = false;
|
||||||
Reference in New Issue
Block a user