Add new just-based flow for putting files into pier
This commit is contained in:
parent
e413433f01
commit
87411236e3
@ -6,7 +6,8 @@
|
||||
"scripts": {
|
||||
"start": "node install.js",
|
||||
"serve": "cross-env NODE_ENV=development webpack-dev-server --config webpack.dev.js",
|
||||
"build": "cross-env NODE_ENV=production webpack --config webpack.prod.js"
|
||||
"build": "cross-env NODE_ENV=production webpack --config webpack.prod.js",
|
||||
"build-development": "cross-env NODE_ENV=production webpack --config webpack.development.dev.js"
|
||||
},
|
||||
"author": "Tlon Corp",
|
||||
"license": "MIT",
|
||||
|
53
gall-app/webpack.development.dev.js
Normal file
53
gall-app/webpack.development.dev.js
Normal file
@ -0,0 +1,53 @@
|
||||
const path = require('path');
|
||||
const urbitrc = require('./urbitrc');
|
||||
|
||||
module.exports = {
|
||||
mode: 'production',
|
||||
entry: {
|
||||
app: './src/index.js'
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.jsx?$/,
|
||||
use: {
|
||||
loader: 'babel-loader',
|
||||
options: {
|
||||
presets: ['@babel/preset-env', '@babel/preset-react'],
|
||||
plugins: [
|
||||
'@babel/transform-runtime',
|
||||
'@babel/plugin-proposal-object-rest-spread',
|
||||
'@babel/plugin-proposal-optional-chaining',
|
||||
'@babel/plugin-proposal-class-properties'
|
||||
]
|
||||
}
|
||||
},
|
||||
exclude: /node_modules/
|
||||
},
|
||||
{
|
||||
test: /\.css$/i,
|
||||
use: [
|
||||
// Creates `style` nodes from JS strings
|
||||
'style-loader',
|
||||
// Translates CSS into CommonJS
|
||||
'css-loader',
|
||||
// Compiles Sass to CSS
|
||||
'sass-loader'
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
resolve: {
|
||||
extensions: ['.js']
|
||||
},
|
||||
devtool: 'inline-source-map',
|
||||
output: {
|
||||
filename: 'bundle.js',
|
||||
path: path.resolve('./urbit/app/browsermanager/js'),
|
||||
publicPath: '/',
|
||||
},
|
||||
optimization: {
|
||||
minimize: false,
|
||||
usedExports: true
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue
Block a user