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