frosty 0.0.73 → 0.0.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -106,10 +106,7 @@ fi
|
|
|
106
106
|
|
|
107
107
|
if [ "$NO_BUILD" != "true" ]; then
|
|
108
108
|
yarn install --cwd "$FROSTY_CLI_ROOT"
|
|
109
|
-
BUILD_OPTS=""$FROSTY_CLI_ROOT/
|
|
110
|
-
BUILD_OPTS="$BUILD_OPTS -c "$FROSTY_CLI_ROOT/webpack.mjs""
|
|
111
|
-
BUILD_OPTS="$BUILD_OPTS --env CONFIG_FILE="$CONFIG_FILE""
|
|
112
|
-
BUILD_OPTS="$BUILD_OPTS --env OUTPUT_DIR="$OUTPUT_DIR""
|
|
109
|
+
BUILD_OPTS="-c "$FROSTY_CLI_ROOT/webpack.mjs" --env CONFIG_FILE="$CONFIG_FILE" --env OUTPUT_DIR="$OUTPUT_DIR""
|
|
113
110
|
if [ "$DEBUG_MODE" = "true" ]; then
|
|
114
111
|
BUILD_OPTS="$BUILD_OPTS --mode development"
|
|
115
112
|
else
|
|
@@ -119,9 +116,9 @@ if [ "$NO_BUILD" != "true" ]; then
|
|
|
119
116
|
[ -n "$SRCROOT" ] && BUILD_OPTS="$BUILD_OPTS --env SRCROOT="$SRCROOT""
|
|
120
117
|
[ -n "$PORT" ] && BUILD_OPTS="$BUILD_OPTS --env PORT="$PORT""
|
|
121
118
|
if [ "$WATCH_MODE" = "true" ]; then
|
|
122
|
-
npx
|
|
119
|
+
npx webpack $BUILD_OPTS --watch &
|
|
123
120
|
else
|
|
124
|
-
npx
|
|
121
|
+
npx webpack $BUILD_OPTS
|
|
125
122
|
fi
|
|
126
123
|
fi
|
|
127
124
|
|
|
@@ -82,7 +82,7 @@ export default async (env, argv) => {
|
|
|
82
82
|
const babelLoaderConfiguration = ({ server }) => ({
|
|
83
83
|
test: /\.(ts|tsx|m?js)?$/i,
|
|
84
84
|
use: {
|
|
85
|
-
loader: 'babel-loader',
|
|
85
|
+
loader: path.resolve(__dirname, 'node_modules/babel-loader'),
|
|
86
86
|
options: {
|
|
87
87
|
compact: IS_PRODUCTION,
|
|
88
88
|
cacheDirectory: true,
|
|
@@ -118,9 +118,9 @@ export default async (env, argv) => {
|
|
|
118
118
|
test: /\.(css|sass|scss)$/,
|
|
119
119
|
use: [
|
|
120
120
|
!server && MiniCssExtractPlugin.loader,
|
|
121
|
-
'css-loader',
|
|
121
|
+
path.resolve(__dirname, 'node_modules/css-loader'),
|
|
122
122
|
{
|
|
123
|
-
loader: 'postcss-loader',
|
|
123
|
+
loader: path.resolve(__dirname, 'node_modules/postcss-loader'),
|
|
124
124
|
options: {
|
|
125
125
|
postcssOptions: {
|
|
126
126
|
plugins: [
|
|
@@ -129,14 +129,14 @@ export default async (env, argv) => {
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
},
|
|
132
|
-
'sass-loader',
|
|
132
|
+
path.resolve(__dirname, 'node_modules/sass-loader'),
|
|
133
133
|
].filter(Boolean),
|
|
134
134
|
});
|
|
135
135
|
|
|
136
136
|
const imageLoaderConfiguration = ({ server }) => ({
|
|
137
137
|
test: /\.(gif|jpe?g|a?png|svg)$/i,
|
|
138
138
|
use: {
|
|
139
|
-
loader: 'file-loader',
|
|
139
|
+
loader: path.resolve(__dirname, 'node_modules/file-loader'),
|
|
140
140
|
options: {
|
|
141
141
|
name: '[name].[contenthash].[ext]',
|
|
142
142
|
publicPath: '/images',
|
|
@@ -149,7 +149,7 @@ export default async (env, argv) => {
|
|
|
149
149
|
const fontLoaderConfiguration = ({ server }) => ({
|
|
150
150
|
test: /\.ttf$/i,
|
|
151
151
|
use: {
|
|
152
|
-
loader: 'file-loader',
|
|
152
|
+
loader: path.resolve(__dirname, 'node_modules/file-loader'),
|
|
153
153
|
options: {
|
|
154
154
|
name: '[name].[contenthash].[ext]',
|
|
155
155
|
publicPath: '/fonts',
|